Spaces:
Running
Running
utilities_language_general/similarity_measures.py
CHANGED
@@ -1,13 +1,9 @@
|
|
1 |
import numpy as np
|
2 |
from math import pow
|
3 |
from utilities_language_general.esp_constants import nlp, PHRASES, LEVEL_NUMBERS
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
except Exception:
|
8 |
-
import nltk
|
9 |
-
nltk.download('wordnet')
|
10 |
-
from nltk.corpus import wordnet as wn
|
11 |
|
12 |
|
13 |
def eucledian_distance(x, y):
|
|
|
1 |
import numpy as np
|
2 |
from math import pow
|
3 |
from utilities_language_general.esp_constants import nlp, PHRASES, LEVEL_NUMBERS
|
4 |
+
import nlrk
|
5 |
+
nltk.download('wordnet')
|
6 |
+
from nltk.corpus import wordnet as wn
|
|
|
|
|
|
|
|
|
7 |
|
8 |
|
9 |
def eucledian_distance(x, y):
|