Spaces:
Running
Running
fixed missing nltk punkt
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ import matplotlib
|
|
11 |
import joblib
|
12 |
from sklearn.decomposition import PCA
|
13 |
from collections import OrderedDict
|
|
|
14 |
|
15 |
matplotlib.use("Agg") # Use non-interactive backend
|
16 |
import matplotlib.pyplot as plt
|
@@ -32,6 +33,8 @@ ANNOTATED_FEATURES_INFO = [
|
|
32 |
"Colloquial | Formal",
|
33 |
]
|
34 |
|
|
|
|
|
35 |
# Load PCA model and annotated features
|
36 |
try:
|
37 |
pca = joblib.load(PCA_MODEL_PATH)
|
|
|
11 |
import joblib
|
12 |
from sklearn.decomposition import PCA
|
13 |
from collections import OrderedDict
|
14 |
+
import nltk
|
15 |
|
16 |
matplotlib.use("Agg") # Use non-interactive backend
|
17 |
import matplotlib.pyplot as plt
|
|
|
33 |
"Colloquial | Formal",
|
34 |
]
|
35 |
|
36 |
+
nltk.download("punkt_tab")
|
37 |
+
|
38 |
# Load PCA model and annotated features
|
39 |
try:
|
40 |
pca = joblib.load(PCA_MODEL_PATH)
|