pvanand commited on
Commit
aee34ba
1 Parent(s): 95a537c

Update download_nltk_data.py

Browse files
Files changed (1) hide show
  1. download_nltk_data.py +2 -5
download_nltk_data.py CHANGED
@@ -1,9 +1,6 @@
1
  import nltk
2
  import os
3
 
4
- # Set the NLTK_DATA environment variable to /app/nltk_data
5
- os.environ['NLTK_DATA'] = '/app/nltk_data'
6
-
7
  # Download NLTK data
8
- nltk.download('stopwords', download_dir=os.environ['NLTK_DATA'])
9
- nltk.download('punkt', download_dir=os.environ['NLTK_DATA'])
 
1
  import nltk
2
  import os
3
 
 
 
 
4
  # Download NLTK data
5
+ nltk.download('stopwords', download_dir='/app/nltk_data')
6
+ nltk.download('punkt', download_dir='/app/nltk_data')