Spaces:
Sleeping
Sleeping
Update model.py
Browse files
model.py
CHANGED
@@ -90,7 +90,7 @@ def clean_text(text):
|
|
90 |
text = re.sub(r'\s+', ' ', text).strip()
|
91 |
words = word_tokenize(text)
|
92 |
#words = [word for word in words if word not in stopwords]
|
93 |
-
words = [lemmatizer.lemmatize(word) for word in words]
|
94 |
return ' '.join(words)
|
95 |
|
96 |
|
|
|
90 |
text = re.sub(r'\s+', ' ', text).strip()
|
91 |
words = word_tokenize(text)
|
92 |
#words = [word for word in words if word not in stopwords]
|
93 |
+
#words = [lemmatizer.lemmatize(word) for word in words]
|
94 |
return ' '.join(words)
|
95 |
|
96 |
|