Fix punkt download and path issue
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ nltk.data.path.append(nltk_data_path)
|
|
16 |
|
17 |
# Download 'punkt' and 'stopwords' if not already present
|
18 |
if not os.path.exists(os.path.join(nltk_data_path, 'tokenizers/punkt')):
|
19 |
-
nltk.download('
|
20 |
if not os.path.exists(os.path.join(nltk_data_path, 'corpora/stopwords')):
|
21 |
nltk.download('stopwords', download_dir=nltk_data_path)
|
22 |
|
|
|
16 |
|
17 |
# Download 'punkt' and 'stopwords' if not already present
|
18 |
if not os.path.exists(os.path.join(nltk_data_path, 'tokenizers/punkt')):
|
19 |
+
nltk.download('punkt_tab', download_dir=nltk_data_path)
|
20 |
if not os.path.exists(os.path.join(nltk_data_path, 'corpora/stopwords')):
|
21 |
nltk.download('stopwords', download_dir=nltk_data_path)
|
22 |
|