Dmitry Kirsanov commited on
Commit
d9751fb
·
1 Parent(s): 74b9dcf
Files changed (1) hide show
  1. understand.py +1 -1
understand.py CHANGED
@@ -197,7 +197,7 @@ Output the line "ACTORS:" followed by your list of actors, one per line.
197
  for val in re.split(",\s+", vals):
198
  self.fad.add_property_to_mark(self.values.get("document"), "sentence", i, property, val, notetype)
199
  else:
200
- raise(f"annotate_sentences_with_{property}: Bad markup from LLM: {sent}")
201
 
202
 
203
  def annotate_sentences_with_actors(self, src="document", dst="document with actors"):
 
197
  for val in re.split(",\s+", vals):
198
  self.fad.add_property_to_mark(self.values.get("document"), "sentence", i, property, val, notetype)
199
  else:
200
+ raise(Exception(f"annotate_sentences_with_{property}: Bad markup from LLM: {sent}"))
201
 
202
 
203
  def annotate_sentences_with_actors(self, src="document", dst="document with actors"):