kritsadaK commited on
Commit
923723e
·
1 Parent(s): bc41f3f
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -15,7 +15,7 @@ from nltk.stem import WordNetLemmatizer
15
 
16
  # Download NLTK resources dynamically if not already present
17
  nltk.download('stopwords')
18
- nltk.download('punkt') # Add this line to download the 'punkt' tokenizer
19
 
20
  # Preprocessing helper functions
21
 
@@ -148,4 +148,3 @@ if url:
148
 
149
  # Preprocess and predict
150
  predict_with_threshold(scraped_text)
151
-
 
15
 
16
  # Download NLTK resources dynamically if not already present
17
  nltk.download('stopwords')
18
+ nltk.download('punkt') # Download the entire punkt resource including 'punkt_tab'
19
 
20
  # Preprocessing helper functions
21
 
 
148
 
149
  # Preprocess and predict
150
  predict_with_threshold(scraped_text)