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

Export Model to plain text (with sense information) ? #15

Open
koepermn opened this issue Oct 21, 2016 · 2 comments
Open

Export Model to plain text (with sense information) ? #15

koepermn opened this issue Oct 21, 2016 · 2 comments

Comments

@koepermn
Copy link

Hi,
First of all AdaGram seems to be very nice and thanks for making everything available. I managed to export the final vectors to binary/txt format using the 'write_word2vec' function, however this function does only wirte 1 sense per word and not the the mutli-sense information. Does anyone have a small script to convert the binary model to a plain text file including multiple senses and their sense probability ? I'm obviously not really familiar with julia.

Best regards,
Maximilian

@lopuhin
Copy link

lopuhin commented Oct 21, 2016

You can dump the whole module to JSON (might require a lot of memory): https://github.com/lopuhin/python-adagram/blob/master/adagram/dump_julia.jl

@sbos
Copy link
Owner

sbos commented Oct 22, 2016

Hi @koepermn,
Glad you found our work interesting.

The write_word2vec function exports a model into the word2vec format.
I imagine that you need something like this https://gist.github.com/sbos/5720d443c04f278316ba09cda5502739
Have to apologize in advance, I wrote this without an access to julia interpreter so it may not work, but in case it does it should be the right thing.

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