Skip to content

Commit

Permalink
Update process_dataflow_func.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SySeVR authored Feb 9, 2020
1 parent 79a141c commit 876f832
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Implementation/data_preprocess/process_dataflow_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,13 @@ def get_sentences(_path,labelpath,corpuspath,maptype=True):
del sentences[-1]
if sentences[-1] == '\r':
del sentences[-1]
testcase_id = (sentences[0].split(' ')[1]).split('/')[7]
label = int(sentences[-1])

focuspointer = sentences[0].split(" ")[-2:]
sliceid = index
file_name = sentences[0]
if FLAGMODE:
program_id = sentences[0].split(" ")[1].split("/")[5]+sentences[0].split(" ")[1].split("/")[6]+sentences[0].split(" ")[1].split("/")[7]
program_id = sentences[0].split(" ")[1].split('/')[0]
else:
program_id = sentences[0].split(" ")[1].split("/")[7]
if lastprogram_id == 0:
Expand Down

0 comments on commit 876f832

Please sign in to comment.