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

Could not get the bio_embedding.txt file #46

Open
www-Ye opened this issue Sep 20, 2022 · 3 comments
Open

Could not get the bio_embedding.txt file #46

www-Ye opened this issue Sep 20, 2022 · 3 comments

Comments

@www-Ye
Copy link

www-Ye commented Sep 20, 2022

Hello, the link to bio_embedding.txt does not open, where can I get this file?

@fuzihaofzh
Copy link

Same problem here. Seems the server is down. Could anyone help to share the embedding file? Thanks.

@www-Ye
Copy link
Author

www-Ye commented Oct 4, 2022

Same problem here. Seems the server is down. Could anyone help to share the embedding file? Thanks.

I used the website http://bio.nlplab.org/ mentioned in footnote 7 of the original paper to download the original .bin format word2vec file and then used gensim to convert it to .txt format, perhaps to get the same embedding

@fuzihaofzh
Copy link

Thanks @www-Ye , it helps a lot.

I don't know whether I am correct, but the following code can get the program running. No guarantee of getting the same results.

! wget http://evexdb.org/pmresources/vec-space-models/wikipedia-pubmed-and-PMC-w2v.bin
from gensim.models.keyedvectors import KeyedVectors
model = KeyedVectors.load_word2vec_format(
       "./wikipedia-pubmed-and-PMC-w2v.bin", binary=True
 )
model.save_word2vec_format("bio_embedding.txt", binary=False)

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

2 participants