Fasttext for Python - module 'fasttext' has no attribute 'load_model' -


please forgive newbness here, fasttext not working me on python. using anaconda running python 3.6. code follows(just example):

import fasttext   model = fasttext.load_model('/home/sproc/share/fasttext/model.bin') print(model.words) 

this returns following error:

traceback (most recent call last):   file "/media/sf_vboxshare/liclipseworkspace/test/testpack/fasttext.py", line 1, in <module>     import fasttext    file "/media/sf_vboxshare/liclipseworkspace/test/testpack/fasttext.py", line 3, in <module>    model = fasttext.load_model('/home/sproc/share/fasttext/model.bin') attributeerror: module 'fasttext' has no attribute 'load_model' 

does same thing cbow , skipgram when trying create word vectors. check init.py file .../site-packages/fasttext directory , imports said attributes, not part of model.py module. i'm guessing has shared object file not sure. appreciated.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -