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
Branches
No related merge requests found
...@@ -387,8 +387,17 @@ def valid_connection(lexical_unit, schema_hook, connections_info): ...@@ -387,8 +387,17 @@ def valid_connection(lexical_unit, schema_hook, connections_info):
if schema_id in lu_schema_connections[lexical_unit]: if schema_id in lu_schema_connections[lexical_unit]:
return True return True
if connected_lu_count[schema_id] == 0: if connected_lu_count[schema_id] == 0:
# @TODO: check for "się" in_lemma = False
return True 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 return False
def write_phrases_coll(parent, phrases_list): def write_phrases_coll(parent, phrases_list):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment