-
Notifications
You must be signed in to change notification settings - Fork 134
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
How can I install the spacy.en model except the method provided? #6
Comments
@bityangke You can do the same job using NLTK's word2vec see this. As long as there is a function word_embeddings which takes word and gives its embeddings value, this will work. Maybe @honnibal might be able to help you with installation of spacy.en |
Maybe try again? Yesterday we moved hosts, so it's possible the DNS propagation interfered with your transfer. Btw, I think that NLTK word2vec tutorial describes training the word vectors, not using them? |
You are right, that tutorial describes training. To use pre-trained word vectors, all you need are following two lines -- import gensim model = gensim.models.Word2Vec.load_word2vec_format('./model/GoogleNews-vectors-negative300.bin', binary=True) Like @honnibal suggested, please try again. Spacy is really good library. |
Thanks @iamaaditya and @honnibal very much, I have solve this problem. |
Aaah, sadness! Sorry about this. This was a regression introduced in 0.101.0. It's fixed in 1.0 (out next week!) The workaround is to add the following line when you import spaCy:
|
@honnibal Thanks very much! |
@iamaaditya Thank you very much for your wonderful work! |
When I install the spacy.en model using "sputnik --name spacy install en" it was very slow, and failed, so I can not install model until now.
Is there other ways I can do the same job?
The text was updated successfully, but these errors were encountered: