diff --git a/importer/Argument.py b/importer/Argument.py index 50ea3f54a640cba82b353d2f0b59aaf9afc888cb..dd5b7289f46d4151e8ceedee18405708b41081ea 100644 --- a/importer/Argument.py +++ b/importer/Argument.py @@ -106,7 +106,9 @@ class SemanticRole: attribute = semantics.models.RoleAttribute.objects.get(attribute=self._attribute) else: attribute = None + print('Find argument_role for semantic_role: {} and attribute {}'.format(role, attribute)) argument_role = semantics.models.ArgumentRole.objects.get(role=role, attribute=attribute, sub_attribute=None) + print('Found argument_role: {}'.format(argument_role)) return argument_role def __str__(self): diff --git a/importer/unification/UnifiedFrameImport.py b/importer/unification/UnifiedFrameImport.py index 16b3cd321f7620ec7f402d4918e8bab35de1c4c6..5908b5037096943f17981ac17718722bc60f66a3 100644 --- a/importer/unification/UnifiedFrameImport.py +++ b/importer/unification/UnifiedFrameImport.py @@ -46,6 +46,7 @@ class UnifiedFrameImport: for semantic_role in semantic_roles: semantic_roles_obj = semantic_role.store() semantic_roles_obj.save() + print('Assign semantic_role {} to argument id {}'.format(semantic_roles_obj.role.role, argument.pk)) argument.proposed_roles.add(semantic_roles_obj) argument.save()