efeperro commited on
Commit
71cc21f
1 Parent(s): abbd961

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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