Agriculture_KnowledgeGraph
Agriculture_KnowledgeGraph copied to clipboard
pyfasttext==0.4.5
想问一下pyfasttext==0.4.5怎么pip,我老是报错,requirement.txt里面的
我也是
me too ,anybody can solve it?
I had try anyways of solving , but I found the easy way to solve the problem
- do not try to install pyfasttext , just install fasttext . that's OK
- change the from pyfasttext import Fasttext to from fasttext import Fasttext
- change the code , just like this model = FastText.load_model('wiki.zh.bin') print(model.get_nearest_neighbors('桃', k=5))