AntNikYab commited on
Commit
d076e48
1 Parent(s): df0a079

Upload lstm_preprocessing.py

Browse files
Files changed (1) hide show
  1. function/lstm_preprocessing.py +2 -0
function/lstm_preprocessing.py CHANGED
@@ -8,6 +8,8 @@ from sklearn.linear_model import LogisticRegression
8
  from nltk.stem import SnowballStemmer
9
 
10
  from nltk.corpus import stopwords
 
 
11
  stop_words = set(stopwords.words('russian'))
12
  stemmer = SnowballStemmer('russian')
13
  sw = stopwords.words('russian')
 
8
  from nltk.stem import SnowballStemmer
9
 
10
  from nltk.corpus import stopwords
11
+ import nltk
12
+ nltk.download('stopwords')
13
  stop_words = set(stopwords.words('russian'))
14
  stemmer = SnowballStemmer('russian')
15
  sw = stopwords.words('russian')