billusanda007 commited on
Commit
3880b3d
·
1 Parent(s): a95d43f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -11,6 +11,10 @@ from nltk.corpus import stopwords
11
  from nltk.stem import WordNetLemmatizer
12
 
13
  # Initialize NLTK resources
 
 
 
 
14
  nltk.download('stopwords')
15
  stop_words = set(stopwords.words("english")) # Create a set of English stopwords
16
  lemmatizer = WordNetLemmatizer() # Initialize the WordNet Lemmatizer
 
11
  from nltk.stem import WordNetLemmatizer
12
 
13
  # Initialize NLTK resources
14
+ nltk.download('omw-1.4')
15
+ nltk.download('wordnet')
16
+ nltk.download('wordnet2022')
17
+ nltk.download('punkt')
18
  nltk.download('stopwords')
19
  stop_words = set(stopwords.words("english")) # Create a set of English stopwords
20
  lemmatizer = WordNetLemmatizer() # Initialize the WordNet Lemmatizer