Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
6cf8d11
1
Parent(s):
a7ed709
update
Browse files
app.py
CHANGED
@@ -234,7 +234,8 @@ def split_into_sentences(text: str):
|
|
234 |
lines = text.splitlines()
|
235 |
sentences = []
|
236 |
for line in lines:
|
237 |
-
sentences.extend(nltk.sent_tokenize(line))
|
|
|
238 |
separators = []
|
239 |
cur_start = 0
|
240 |
for sentence in sentences:
|
|
|
234 |
lines = text.splitlines()
|
235 |
sentences = []
|
236 |
for line in lines:
|
237 |
+
#sentences.extend(nltk.sent_tokenize(line))
|
238 |
+
sentences.extend(line.split("."))
|
239 |
separators = []
|
240 |
cur_start = 0
|
241 |
for sentence in sentences:
|