Dmitry Kirsanov commited on
Commit
ab4f636
·
1 Parent(s): 0ebd574

fix markup

Browse files
Files changed (1) hide show
  1. understand.py +1 -0
understand.py CHANGED
@@ -186,6 +186,7 @@ Output the line "ACTORS:" followed by your list of actors, one per line.
186
  i = 0
187
  for sent in sents:
188
  newfad = self.fad.add_span_mark(newfad, "sentence", i, i+len(sent) - 1)
 
189
  self.values.put(dst, newfad)
190
  print(f"=== Sentence-split FAD : {newfad}")
191
  # todo: pass this through LLM to verify and correct sentence splittings
 
186
  i = 0
187
  for sent in sents:
188
  newfad = self.fad.add_span_mark(newfad, "sentence", i, i+len(sent) - 1)
189
+ i += len(sent)
190
  self.values.put(dst, newfad)
191
  print(f"=== Sentence-split FAD : {newfad}")
192
  # todo: pass this through LLM to verify and correct sentence splittings