Dmitry Kirsanov commited on
Commit
be97aaf
·
1 Parent(s): 8a107ca
Files changed (1) hide show
  1. understand.py +2 -0
understand.py CHANGED
@@ -191,9 +191,11 @@ Output the line "ACTORS:" followed by your list of actors, one per line.
191
  def annotate_sentences_in_fad(self, llmtext, property, notetype):
192
  sents = re.split('</sentence>', llmtext)
193
  for i, sent in enumerate(sents):
 
194
  match = re.match(f'\s*<sentence[^>]+{property}="([^"]+)"', sent)
195
  if match:
196
  vals = match.groups(1)
 
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:
 
191
  def annotate_sentences_in_fad(self, llmtext, property, notetype):
192
  sents = re.split('</sentence>', llmtext)
193
  for i, sent in enumerate(sents):
194
+ print(i, sent)
195
  match = re.match(f'\s*<sentence[^>]+{property}="([^"]+)"', sent)
196
  if match:
197
  vals = match.groups(1)
198
+ print(f"vals {vals}")
199
  for val in re.split(",\s+", vals):
200
  self.fad.add_property_to_mark(self.values.get("document"), "sentence", i, property, val, notetype)
201
  else: