Changed whitespace aspect from document to sentence based.

This commit is contained in:
Luka 2021-01-23 09:28:10 +01:00
parent 361331515e
commit 552f2e4bd0

View File

@ -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():