Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +4 -2
src/streamlit_app.py
CHANGED
|
@@ -11,7 +11,8 @@ from pandas import DataFrame
|
|
| 11 |
|
| 12 |
warnings.filterwarnings('ignore')
|
| 13 |
import re, flair, random, time
|
| 14 |
-
from bnlp import BasicTokenizer
|
|
|
|
| 15 |
from flair.data import Corpus, Sentence
|
| 16 |
from flair.datasets import ColumnCorpus
|
| 17 |
|
|
@@ -144,7 +145,8 @@ if choice == 'Text Input':
|
|
| 144 |
input_data = st.text_area("Write your sentence below", value="", height=68)
|
| 145 |
if st.button('Click to execute'):
|
| 146 |
|
| 147 |
-
data = BasicTokenizer().tokenize(input_data)
|
|
|
|
| 148 |
# data = word_tokenize(input_data)
|
| 149 |
|
| 150 |
|
|
|
|
| 11 |
|
| 12 |
warnings.filterwarnings('ignore')
|
| 13 |
import re, flair, random, time
|
| 14 |
+
# from bnlp import BasicTokenizer
|
| 15 |
+
from indicnlp.tokenize import indic_tokenize
|
| 16 |
from flair.data import Corpus, Sentence
|
| 17 |
from flair.datasets import ColumnCorpus
|
| 18 |
|
|
|
|
| 145 |
input_data = st.text_area("Write your sentence below", value="", height=68)
|
| 146 |
if st.button('Click to execute'):
|
| 147 |
|
| 148 |
+
# data = BasicTokenizer().tokenize(input_data)
|
| 149 |
+
data = indic_tokenize.trivial_tokenize(input_data)
|
| 150 |
# data = word_tokenize(input_data)
|
| 151 |
|
| 152 |
|