Skip to content

Commit aefe269

Browse files
committed
Fix slither-simil fasttext import
1 parent 414d88f commit aefe269

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

slither/tools/similarity/model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
try:
44
# pylint: disable=unused-import
5-
from fastText import load_model
6-
from fastText import train_unsupervised
5+
from fasttext import load_model
6+
from fasttext import train_unsupervised
77
except ImportError:
8-
print("ERROR: in order to use slither-simil, you need to install fastText 0.2.0:")
9-
print("$ pip3 install https://github.com/facebookresearch/fastText/archive/0.2.0.zip --user\n")
8+
print("ERROR: in order to use slither-simil, you need to install fasttext>=0.2.0:")
9+
print("$ pip3 install fasttext --user\n")
1010
sys.exit(-1)

0 commit comments

Comments
 (0)