Added gigafida fix for multiple senses
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user