Skip to content
Snippets Groups Projects
Commit 33952f77 authored by Alice Brenon's avatar Alice Brenon
Browse files

Fix typo in stanza: outer TEI element should be body, not text

parent 352ebe5c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment