From 33952f7756ac9350566634403bffe9e55a9f31c1 Mon Sep 17 00:00:00 2001 From: Alice BRENON <alice.brenon@ens-lyon.fr> Date: Sat, 10 Dec 2022 19:04:20 +0100 Subject: [PATCH] Fix typo in stanza: outer TEI element should be body, not text --- scripts/stanza-annotator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/stanza-annotator.py b/scripts/stanza-annotator.py index 2d341b9..c6f4d5e 100755 --- a/scripts/stanza-annotator.py +++ b/scripts/stanza-annotator.py @@ -34,10 +34,10 @@ class Annotator: def encode(self, file, annotation): with open(f'{self.target}/{file}', 'w') as target: - print('<text>', file=target) + print('<body>', file=target) for sentence in annotation.sentences: self.encode_sentence(sentence, target) - print('</text>', file=target) + print('</body>', file=target) def encode_sentence(self, sentence, target): print('\t<s>', file=target) -- GitLab