Spaces:
Running
Running
Handled English lib path error
Browse files
utils.py
CHANGED
@@ -25,10 +25,10 @@ from sentence_transformers import CrossEncoder
|
|
25 |
from sklearn.metrics.pairwise import cosine_similarity
|
26 |
|
27 |
# Initialize NLTK stopwords
|
28 |
-
|
29 |
-
|
30 |
-
nltk.data.path.append('./nltk_data') # Point to local NLTK data
|
31 |
-
stop_words = set(nltk.corpus.stopwords.words('english'))
|
32 |
|
33 |
# mount
|
34 |
import sys
|
|
|
25 |
from sklearn.metrics.pairwise import cosine_similarity
|
26 |
|
27 |
# Initialize NLTK stopwords
|
28 |
+
nltk.download('stopwords')
|
29 |
+
stop_words = set(stopwords.words('english'))
|
30 |
+
# nltk.data.path.append('./nltk_data') # Point to local NLTK data
|
31 |
+
# stop_words = set(nltk.corpus.stopwords.words('english'))
|
32 |
|
33 |
# mount
|
34 |
import sys
|