sashtech commited on
Commit
a1de069
·
verified ·
1 Parent(s): 6e3258f

Update app.py

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