efeperro commited on
Commit
d139e9a
1 Parent(s): 3aa69e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import streamlit as st
2
- from functions_preprocess import LinguisticPreprocessor
3
  import pickle
4
-
 
5
 
6
  #################################################################### Streamlit interface
7
  st.title("Movie Reviews: An NLP Sentiment analysis")
 
1
  import streamlit as st
2
+ from functions_preprocess import LinguisticPreprocessor, download_if_non_existent
3
  import pickle
4
+ download_if_non_existent('corpora/stopwords', 'stopwords', 'taggers/averaged_perceptron_tagger',
5
+ 'averaged_perceptron_tagger', 'corpora/wordnet', 'wordnet', 'punkt, omw-1.4')
6
 
7
  #################################################################### Streamlit interface
8
  st.title("Movie Reviews: An NLP Sentiment analysis")