Spaces:
Runtime error
Runtime error
Dmitry Kirsanov commited on
Commit ·
082d0f1
1
Parent(s): b668346
debug
Browse files- fad.py +1 -0
- understand.py +3 -0
fad.py
CHANGED
|
@@ -247,6 +247,7 @@ class Fad:
|
|
| 247 |
noteid = self.get_note_for_mark_n(fad, notetype, mark_n, startfrom)
|
| 248 |
if valuetype != None: # we're setting value to ref to a note whose type is valuetype
|
| 249 |
id = self.get_note_by_value(value, valuetype)
|
|
|
|
| 250 |
self.notes[noteid].add(property, id)
|
| 251 |
else: # we're setting leaf string value to property
|
| 252 |
self.notes[noteid].add(property, value)
|
|
|
|
| 247 |
noteid = self.get_note_for_mark_n(fad, notetype, mark_n, startfrom)
|
| 248 |
if valuetype != None: # we're setting value to ref to a note whose type is valuetype
|
| 249 |
id = self.get_note_by_value(value, valuetype)
|
| 250 |
+
print (f"id = self.get_note_by_value(value, valuetype): {id}, {value},{valuetype}")
|
| 251 |
self.notes[noteid].add(property, id)
|
| 252 |
else: # we're setting leaf string value to property
|
| 253 |
self.notes[noteid].add(property, value)
|
understand.py
CHANGED
|
@@ -145,6 +145,9 @@ Here's the document:
|
|
| 145 |
# also store concepts in the fad marks
|
| 146 |
self.fad.add_notes_from_list(reconciled[concepts], "concept")
|
| 147 |
self.fad.add_notes_from_list(reconciled[actors], "actor")
|
|
|
|
|
|
|
|
|
|
| 148 |
|
| 149 |
print(f"===Reconciled: Concepts: {newline.join(self.fad.get_values_by_type('concept'))}, Actors: {newline.join(self.fad.get_values_by_type('actor'))}")
|
| 150 |
|
|
|
|
| 145 |
# also store concepts in the fad marks
|
| 146 |
self.fad.add_notes_from_list(reconciled[concepts], "concept")
|
| 147 |
self.fad.add_notes_from_list(reconciled[actors], "actor")
|
| 148 |
+
print("store concepts in the fad marks")
|
| 149 |
+
print(reconciled[concepts])
|
| 150 |
+
print(reconciled[actors])
|
| 151 |
|
| 152 |
print(f"===Reconciled: Concepts: {newline.join(self.fad.get_values_by_type('concept'))}, Actors: {newline.join(self.fad.get_values_by_type('actor'))}")
|
| 153 |
|