diff --git a/luscenje_struktur/loader.py b/luscenje_struktur/loader.py index a310fe9..08d2ec0 100644 --- a/luscenje_struktur/loader.py +++ b/luscenje_struktur/loader.py @@ -194,7 +194,6 @@ def file_sentence_generator(et, args): do_msd_translate = not args.no_msd_translate pc_tag = args.pc_tag use_punctuations = not args.ignore_punctuations - previous_glue = '' previous_pc = False words = {} @@ -203,6 +202,7 @@ def file_sentence_generator(et, args): # create fake root word words[sentence.get('id')] = Word.fake_root_word(sentence.get('id')) last_word_id = None + previous_glue = '' if args.new_tei: for w in sentence.iter():