Spaces:
Runtime error
Runtime error
carrie
commited on
Commit
•
d94e318
1
Parent(s):
bb6e8d2
minor fix
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def get_ans_sentence_with_stanza(answer_paragraph, pipeline,
|
|
42 |
if is_offset:
|
43 |
sentences.append((sent.tokens[0].start_char, sent.tokens[-1].end_char))
|
44 |
else:
|
45 |
-
sentence = answer_paragraph[sent.tokens[0].start_char:sent.tokens[-1].end_char
|
46 |
sentences.append(sentence.strip())
|
47 |
return sentences
|
48 |
|
|
|
42 |
if is_offset:
|
43 |
sentences.append((sent.tokens[0].start_char, sent.tokens[-1].end_char))
|
44 |
else:
|
45 |
+
sentence = answer_paragraph[sent.tokens[0].start_char:sent.tokens[-1].end_char]
|
46 |
sentences.append(sentence.strip())
|
47 |
return sentences
|
48 |
|