Redmine #2198: Limited wani to "collocation" type structures

This commit is contained in:
Cyprian Laskowski 2021-12-03 15:23:29 +01:00
parent 39692e839f
commit d0bec69fd8

View File

@ -115,7 +115,7 @@ def build_structures(args):
structures = []
for structure in et.iter('syntactic_structure'):
if structure.attrib['type'] == 'single':
if structure.attrib['type'] != 'collocation':
continue
to_append = SyntacticStructure.from_xml(structure, no_stats)
if to_append is None: