Modified error signal + Fixed no_stat
This commit is contained in:
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 lfrom in words:
|
||||||
if not skip_id_check and is_root_id(lfrom):
|
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)
|
sys.exit(1)
|
||||||
|
|
||||||
if dest in words:
|
if dest in words:
|
||||||
|
|
|
@ -106,7 +106,7 @@ class SyntacticStructure:
|
||||||
|
|
||||||
def build_structures(args):
|
def build_structures(args):
|
||||||
filename = args.structures
|
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
|
max_num_components = -1
|
||||||
with open(filename, 'r') as fp:
|
with open(filename, 'r') as fp:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user