Added gigafida fix for multiple senses

This commit is contained in:
2020-12-08 15:33:20 +01:00
parent 75b015dcda
commit 69c3521e4b
2 changed files with 54 additions and 5 deletions
+1 -1
View File
@@ -1181,7 +1181,7 @@ def write_xml(headword_category, collection_ssj, collection_gigafida, RF, mongo,
for sentence_example in headword_pattern_dict['gf']['sentence_examples']:
exampleContainer = lxml.SubElement(exampleContainerList, 'exampleContainer')
# corpusExample = lxml.SubElement(exampleContainer, 'corpusExample')
exampleContainer.append(sentence_example)
exampleContainer.append(copy.deepcopy(sentence_example))
with lxml.xmlfile(os.path.join(args.outdir, 'VS10_' + headword_text + '_' + corpus_name + '.xml'),
encoding='utf-8') as xf:
xf.write(dictionary, pretty_print=True)