Changed whitespace aspect from document to sentence based.

i2198
Luka 3 years ago
parent 361331515e
commit 552f2e4bd0

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

Loading…
Cancel
Save