Update process_underscores.py
Browse files- process_underscores.py +1 -0
process_underscores.py
CHANGED
@@ -438,6 +438,7 @@ def restore_docs(text_dict,dep_files=[],rel_files=[],tok_files=[]):
|
|
438 |
underscore_len += unit1_txt.count("_") + unit2_txt.count("_") + unit1_sent.count("_") + unit2_sent.count("_")
|
439 |
if underscore_len == 0:
|
440 |
continue
|
|
|
441 |
#sys.stderr.write("! Non-underscored file detected - " + os.path.basename(file_) + "\n")
|
442 |
#sys.exit(0)
|
443 |
unit1_txt = restore_range(unit1_toks, unit1_txt, tid2string[docname])
|
|
|
438 |
underscore_len += unit1_txt.count("_") + unit2_txt.count("_") + unit1_sent.count("_") + unit2_sent.count("_")
|
439 |
if underscore_len == 0:
|
440 |
continue
|
441 |
+
print('underscore_len==0')
|
442 |
#sys.stderr.write("! Non-underscored file detected - " + os.path.basename(file_) + "\n")
|
443 |
#sys.exit(0)
|
444 |
unit1_txt = restore_range(unit1_toks, unit1_txt, tid2string[docname])
|