Dmitry Kirsanov commited on
Commit
8a107ca
·
1 Parent(s): d9751fb

fix regexp

Browse files
Files changed (1) hide show
  1. understand.py +1 -1
understand.py CHANGED
@@ -191,7 +191,7 @@ 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'<sentence[^>]+{property}="([^"]+)"', sent)
195
  if match:
196
  vals = match.groups(1)
197
  for val in re.split(",\s+", vals):
 
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):