Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyfasttext==0.4.5 #87

Open
trash-lin opened this issue Sep 14, 2021 · 3 comments
Open

pyfasttext==0.4.5 #87

trash-lin opened this issue Sep 14, 2021 · 3 comments

Comments

@trash-lin
Copy link

想问一下pyfasttext==0.4.5怎么pip,我老是报错,requirement.txt里面的

@sainthyz
Copy link

我也是

@Gaia0o0
Copy link

Gaia0o0 commented Mar 11, 2024

me too ,anybody can solve it?

@Gaia0o0
Copy link

Gaia0o0 commented Mar 12, 2024

I had try anyways of solving , but I found the easy way to solve the problem

  1. do not try to install pyfasttext , just install fasttext . that's OK
  2. change the from pyfasttext import Fasttext to from fasttext import Fasttext
  3. change the code , just like this
    model = FastText.load_model('wiki.zh.bin')
    print(model.get_nearest_neighbors('桃', k=5))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants