-
Notifications
You must be signed in to change notification settings - Fork 391
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
Loading embeddings #22
Comments
You can use gensim to load the .bin model:
Then, you will get the embedding vector of the word "nhà", in Vietnamese for example. |
But it didn't work with FastText, below is my code: from gensim.models import FastText model_f = FastText.load("zh.bin") It throws a exception: |
I fixed it by replacing load with load_fasttext_format. |
Hi,
I downloaded the French embeddings, and extracted the zip file.
How can I load these embeddings in a python code and return the embeddings for a specified word, e.g.: embedding("bonjour") -----> [0.2, -0,2, etc...]
Thanks
The text was updated successfully, but these errors were encountered: