Skip to content

Commit 00d27b9

Browse files
authored
fix import collision
1 parent c3d95ab commit 00d27b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gensim/similarities/nmslib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
Compared to Annoy, NMSLIB has more parameters to control the build and query time and accuracy.
6969
NMSLIB can achieve faster and more accurate nearest neighbors search than annoy.
7070
"""
71+
from __future__ import absolute_import # avoid import collision on py2 (nmslib.py - "bad" name)
7172

7273
from smart_open import open
7374
try:

0 commit comments

Comments
 (0)