adinarayana commited on
Commit
3f45e56
·
verified ·
1 Parent(s): e0d8771

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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()