kritsadaK commited on
Commit
189d79e
·
1 Parent(s): 5a39070

Fix punkt download and path issue

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('punkt', 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
 
 
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