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')