a-v-bely commited on
Commit
67c343e
·
verified ·
1 Parent(s): 8be44b3
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
- 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
 
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):