import nltk | |
from nltk.corpus import stopwords | |
# Print the NLTK data paths | |
print(nltk.data.path) | |
# Download stopwords if necessary | |
nltk.download('stopwords') | |
# Access the stopwords | |
stop_words = stopwords.words('english') | |
print("Stopwords downloaded and available.") | |
# Location of the stopwords directory | |
for path in nltk.data.path: | |
print(f"Checking path: {path}") | |