Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,8 +10,9 @@ from nltk.corpus import stopwords
|
|
| 10 |
from nltk.stem import WordNetLemmatizer
|
| 11 |
import inflect
|
| 12 |
|
| 13 |
-
# Ensure NLTK stopwords are downloaded
|
| 14 |
nltk.download('stopwords')
|
|
|
|
| 15 |
|
| 16 |
# Load the tokenizer, label encoder, and model
|
| 17 |
def load_resources():
|
|
|
|
| 10 |
from nltk.stem import WordNetLemmatizer
|
| 11 |
import inflect
|
| 12 |
|
| 13 |
+
# Ensure NLTK stopwords and wordnet are downloaded
|
| 14 |
nltk.download('stopwords')
|
| 15 |
+
nltk.download('wordnet')
|
| 16 |
|
| 17 |
# Load the tokenizer, label encoder, and model
|
| 18 |
def load_resources():
|