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

How to look up the tokens based on the word representation? #62

Closed
PhyllisH opened this issue Jul 10, 2018 · 3 comments
Closed

How to look up the tokens based on the word representation? #62

PhyllisH opened this issue Jul 10, 2018 · 3 comments

Comments

@PhyllisH
Copy link

Hi~
I'm trying to use the ELMO replacing the original embedding lookup word representation in my model. And I see that you have a model in tensorflow https://tfhub.dev/google/elmo/2. But based on the example, I can only generate word representation and there is no api for the representation back to words. Could u help me with that?
Thanks

@matt-peters
Copy link
Contributor

I'm not sure what you mean by an API to generate the representation back to words? To generate text from the LM?

@PhyllisH
Copy link
Author

PhyllisH commented Jul 14, 2018 via email

@matt-peters
Copy link
Contributor

We have a separate softmax matrix for prediction. You can get it as part of the tensorflow checkpoint, see these comments I just added to the README: https://github.com/allenai/bilm-tf/blob/master/README.md#are-the-softmax-weights-available

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