Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,9 +23,9 @@ def preprocess_text(element):
|
|
23 |
text = re.sub(r'[^\w\s]', '', text) # Replace with your preferred regular expression
|
24 |
|
25 |
# Remove stop words (optional)
|
26 |
-
from nltk.corpus import stopwords
|
27 |
-
stop_words = set(stopwords.words('english'))
|
28 |
-
text = " ".join([word for word in text.split() if word not in stop_words])
|
29 |
|
30 |
# Convert to lowercase (optional)
|
31 |
text = text.lower()
|
|
|
23 |
text = re.sub(r'[^\w\s]', '', text) # Replace with your preferred regular expression
|
24 |
|
25 |
# Remove stop words (optional)
|
26 |
+
# from nltk.corpus import stopwords
|
27 |
+
# stop_words = set(stopwords.words('english'))
|
28 |
+
# text = " ".join([word for word in text.split() if word not in stop_words])
|
29 |
|
30 |
# Convert to lowercase (optional)
|
31 |
text = text.lower()
|