mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Fix corpus build process
This commit is contained in:
parent
63217a7e1d
commit
43ea898394
@ -875,7 +875,9 @@ class Corpus(HashidMixin, db.Model):
|
||||
text_element.set('publishing_year', str(corpus_file.publishing_year)) # noqa
|
||||
text_element.set('school', corpus_file.school or 'NULL')
|
||||
text_element.set('title', corpus_file.title)
|
||||
corpus_element.insert(1, text_element)
|
||||
text_element.tail = '\n'
|
||||
# corpus_element.insert(1, text_element)
|
||||
corpus_element.append(text_element)
|
||||
ET.ElementTree(corpus_element).write(
|
||||
os.path.join(self.path, 'cwb', 'corpus.vrt'),
|
||||
encoding='utf-8'
|
||||
|
Loading…
Reference in New Issue
Block a user