Spaces:
Runtime error
Runtime error
Commit
·
11d6205
1
Parent(s):
b775d33
working on text splitting
Browse files
app.py
CHANGED
@@ -97,6 +97,8 @@ def main() -> None:
|
|
97 |
split_token_length=800
|
98 |
)
|
99 |
for sentence in sentences:
|
|
|
|
|
100 |
output = pipe(sentence)
|
101 |
summary = output[0]["summary_text"]
|
102 |
for line in summary.split("."):
|
|
|
97 |
split_token_length=800
|
98 |
)
|
99 |
for sentence in sentences:
|
100 |
+
token_list = [token for token in nltk.word_tokenize(sentence)]
|
101 |
+
st.text(sentence + " " + len(token_list))
|
102 |
output = pipe(sentence)
|
103 |
summary = output[0]["summary_text"]
|
104 |
for line in summary.split("."):
|