Modified error signal + Fixed no_stat

i2198
Luka 4 years ago
parent 06435aa3a2
commit 09c4277ebe

@ -214,7 +214,7 @@ def file_sentence_generator(et, skip_id_check, do_msd_translate, pc_tag):
if lfrom in words:
if not skip_id_check and is_root_id(lfrom):
logging.error("NOO: {}".format(lfrom))
logging.error("Id {} is not fine, you might want to try with tag --skip-id-check".format(lfrom))
sys.exit(1)
if dest in words:

@ -106,7 +106,7 @@ class SyntacticStructure:
def build_structures(args):
filename = args.structures
no_stats = args.out is None or args.stats is None
no_stats = args.out is None and args.stats is None
max_num_components = -1
with open(filename, 'r') as fp:

Loading…
Cancel
Save