File size: 273 Bytes
6f91d5c
 
 
d59fbd1
6f91d5c
 
 
d59fbd1
 
1
2
3
4
5
6
7
8
9
10
import nltk
import os

# Set the NLTK_DATA environment variable to /app/nltk_data
os.environ['NLTK_DATA'] = '/app/nltk_data'

# Download NLTK data
nltk.download('stopwords', download_dir=os.environ['NLTK_DATA'])
nltk.download('punkt', download_dir=os.environ['NLTK_DATA'])