Spaces:
Running
Running
Update utilities_language_general/similarity_measures.py
Browse files
utilities_language_general/similarity_measures.py
CHANGED
|
@@ -4,7 +4,8 @@ from utilities_language_general.esp_constants import nlp, PHRASES, LEVEL_NUMBERS
|
|
| 4 |
|
| 5 |
try:
|
| 6 |
from nltk.corpus import wordnet as wn
|
| 7 |
-
except
|
|
|
|
| 8 |
nltk.download('wordnet')
|
| 9 |
from nltk.corpus import wordnet as wn
|
| 10 |
|
|
|
|
| 4 |
|
| 5 |
try:
|
| 6 |
from nltk.corpus import wordnet as wn
|
| 7 |
+
except Exception:
|
| 8 |
+
import nltk
|
| 9 |
nltk.download('wordnet')
|
| 10 |
from nltk.corpus import wordnet as wn
|
| 11 |
|