audio_chat / download_nltk_data.py
pvanand's picture
Create download_nltk_data.py
6f91d5c verified
raw
history blame
179 Bytes
import nltk
import os
# Set the NLTK_DATA environment variable
os.environ['NLTK_DATA'] = '/app/nltk_data'
# Download NLTK data
nltk.download('stopwords')
nltk.download('punkt')