Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,12 @@
|
|
1 |
import streamlit as st
|
2 |
from functions_preprocess import LinguisticPreprocessor
|
3 |
import pickle
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
|
6 |
#################################################################### Streamlit interface
|
|
|
1 |
import streamlit as st
|
2 |
from functions_preprocess import LinguisticPreprocessor
|
3 |
import pickle
|
4 |
+
import nltk
|
5 |
+
nltk.download('stopwords')
|
6 |
+
download_if_non_existent('corpora/stopwords', 'stopwords')
|
7 |
+
download_if_non_existent('taggers/averaged_perceptron_tagger', 'averaged_perceptron_tagger')
|
8 |
+
download_if_non_existent('corpora/wordnet', 'wordnet')
|
9 |
+
|
10 |
|
11 |
|
12 |
#################################################################### Streamlit interface
|