Spaces:
Runtime error
Runtime error
Upload lstm_preprocessing.py
Browse files
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')
|