Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import nltk
|
2 |
import streamlit as st
|
3 |
|
|
|
|
|
4 |
def fragment_text(text, tokenizer):
|
5 |
|
6 |
sentences = nltk.tokenize.sent_tokenize(text)
|
|
|
1 |
import nltk
|
2 |
import streamlit as st
|
3 |
|
4 |
+
nltk.download('punkt')
|
5 |
+
|
6 |
def fragment_text(text, tokenizer):
|
7 |
|
8 |
sentences = nltk.tokenize.sent_tokenize(text)
|