Skip to content
Snippets Groups Projects
Commit 3f04c97c authored by Tomasz Bartosiak's avatar Tomasz Bartosiak
Browse files

Finished prunning connections between frames and schemata

parent ac2fd530
No related branches found
No related tags found
No related merge requests found
......@@ -387,8 +387,17 @@ def valid_connection(lexical_unit, schema_hook, connections_info):
if schema_id in lu_schema_connections[lexical_unit]:
return True
if connected_lu_count[schema_id] == 0:
# @TODO: check for "się"
return True
in_lemma = False
in_lemma |= (' się ' in lexical_unit.base)
in_lemma |= (lexical_unit.base.endswith(' się'))
in_schema = False
in_schema |= (schema_hook.subentry.inherent_sie.name == 'true')
for position in schema_hook.schema.positions.all():
if position.phrases_count == 1:
phrase_type = position.phrase_types.all()[0].main_type
in_schema |= (phrase_type == 'refl')
in_schema |= (phrase_type == 'recip')
return (in_lemma == in_schema)
return False
def write_phrases_coll(parent, phrases_list):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment