fix
Browse files
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') #
|
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)
|
|