Skip to content

Commit

Permalink
Fix score_function from LexicalEntailmentEvaluation. Fix piskvork…
Browse files Browse the repository at this point in the history
  • Loading branch information
hachibaka authored and menshikh-iv committed Jan 30, 2018
1 parent 09672b3 commit 97bf9bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/models/poincare.py
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,7 @@ def score_function(self, embedding, trie, term_1, term_2):
assert min_term_1 is not None and min_term_2 is not None
vector_1, vector_2 = embedding.word_vec(min_term_1), embedding.word_vec(min_term_2)
norm_1, norm_2 = np.linalg.norm(vector_1), np.linalg.norm(vector_2)
return -1 * (1 + self.alpha * (norm_2 - norm_1)) * distance
return -1 * (1 + self.alpha * (norm_2 - norm_1)) * min_distance

@staticmethod
def find_matching_terms(trie, word):
Expand Down

0 comments on commit 97bf9bd

Please sign in to comment.