From 09c4277ebe327097188f31633ad3410b2ea5ca80 Mon Sep 17 00:00:00 2001 From: Luka Date: Fri, 9 Oct 2020 20:13:37 +0200 Subject: [PATCH] Modified error signal + Fixed no_stat --- luscenje_struktur/loader.py | 2 +- luscenje_struktur/syntactic_structure.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/luscenje_struktur/loader.py b/luscenje_struktur/loader.py index 8da969b..3cf932a 100644 --- a/luscenje_struktur/loader.py +++ b/luscenje_struktur/loader.py @@ -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: diff --git a/luscenje_struktur/syntactic_structure.py b/luscenje_struktur/syntactic_structure.py index 49a5a81..8734d43 100644 --- a/luscenje_struktur/syntactic_structure.py +++ b/luscenje_struktur/syntactic_structure.py @@ -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: