Spaces:
Runtime error
Runtime error
Dmitry Kirsanov commited on
Commit ·
d85bdf8
1
Parent(s): 086165e
a sentence can legitimately have no audience
Browse files- understand.py +0 -2
understand.py
CHANGED
|
@@ -204,8 +204,6 @@ Output the line "ACTORS:" followed by your list of actors, one per line.
|
|
| 204 |
for val in re.split(",\s+", vals):
|
| 205 |
print(f"property {property} val {val} notetype {notetype}")
|
| 206 |
self.fad.add_property_to_mark(self.values.get("document"), "sentence", i + 1, property, val, notetype)
|
| 207 |
-
else:
|
| 208 |
-
raise(Exception(f"annotate_sentences_with_{property}: Bad markup from LLM: {sent}"))
|
| 209 |
|
| 210 |
|
| 211 |
def annotate_sentences_with_actors(self, src="document", dst="document with actors"):
|
|
|
|
| 204 |
for val in re.split(",\s+", vals):
|
| 205 |
print(f"property {property} val {val} notetype {notetype}")
|
| 206 |
self.fad.add_property_to_mark(self.values.get("document"), "sentence", i + 1, property, val, notetype)
|
|
|
|
|
|
|
| 207 |
|
| 208 |
|
| 209 |
def annotate_sentences_with_actors(self, src="document", dst="document with actors"):
|