sashtech commited on
Commit
03a7ae9
·
verified ·
1 Parent(s): 4faf0a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -13,12 +13,11 @@ import string
13
  # Ensure necessary NLTK data is downloaded
14
  def download_nltk_resources():
15
  try:
16
- nltk.download('punkt')
17
- nltk.download('stopwords')
18
- nltk.download('averaged_perceptron_tagger')
19
- nltk.download('wordnet')
20
- nltk.download('omw-1.4')
21
- nltk.download('punkt_tab') # Added punkt_tab download
22
  except Exception as e:
23
  print(f"Error downloading NLTK resources: {e}")
24
 
 
13
  # Ensure necessary NLTK data is downloaded
14
  def download_nltk_resources():
15
  try:
16
+ nltk.download('punkt') # Tokenizer
17
+ nltk.download('stopwords') # Stop words
18
+ nltk.download('averaged_perceptron_tagger') # POS tagger
19
+ nltk.download('wordnet') # WordNet
20
+ nltk.download('omw-1.4') # Open Multilingual Wordnet
 
21
  except Exception as e:
22
  print(f"Error downloading NLTK resources: {e}")
23