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

Fix punkt download and path issue

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +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_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
 
 
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
 
requirements.txt CHANGED
@@ -3,6 +3,6 @@ requests
3
  beautifulsoup4
4
  pillow
5
  tensorflow
6
- nltk
7
  numpy
8
 
 
3
  beautifulsoup4
4
  pillow
5
  tensorflow
6
+ nltk == 3.8.1
7
  numpy
8