Spaces:
Running
Running
Update download_nltk_data.py
Browse files- 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=
|
9 |
-
nltk.download('punkt', download_dir=
|
|
|
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')
|