From 16cd6ffefd74c50a4f83a2750940203dfd5c74cb Mon Sep 17 00:00:00 2001
From: dcz <dcz@ipipan.waw.pl>
Date: Tue, 12 Sep 2023 13:33:14 +0200
Subject: [PATCH] log

---
 importer/Argument.py                       | 2 ++
 importer/unification/UnifiedFrameImport.py | 1 +
 2 files changed, 3 insertions(+)

diff --git a/importer/Argument.py b/importer/Argument.py
index 50ea3f5..dd5b728 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 16b3cd3..5908b50 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()
-- 
GitLab