File size: 371 Bytes
c28b870
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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}")