Spaces:
Runtime error
Runtime error
Dmitry Kirsanov commited on
Commit ·
679c356
1
Parent(s): 5d42088
fix
Browse files- understand.py +1 -1
understand.py
CHANGED
|
@@ -183,7 +183,7 @@ Output the line "ACTORS:" followed by your list of actors, one per line.
|
|
| 183 |
sents = nltk.tokenize.sent_tokenize(plaintext)
|
| 184 |
i = 0
|
| 185 |
for sent in sents:
|
| 186 |
-
start = plaintext.find(plaintext,
|
| 187 |
if start == -1:
|
| 188 |
raise(Exception("ERROR:nltk.tokenize.sent_tokenize output does not cleanly match source"))
|
| 189 |
newfad = self.fad.add_span_mark(newfad, "sentence", start, start+len(sent) - 1)
|
|
|
|
| 183 |
sents = nltk.tokenize.sent_tokenize(plaintext)
|
| 184 |
i = 0
|
| 185 |
for sent in sents:
|
| 186 |
+
start = plaintext.find(plaintext, i)
|
| 187 |
if start == -1:
|
| 188 |
raise(Exception("ERROR:nltk.tokenize.sent_tokenize output does not cleanly match source"))
|
| 189 |
newfad = self.fad.add_span_mark(newfad, "sentence", start, start+len(sent) - 1)
|