-
Notifications
You must be signed in to change notification settings - Fork 243
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
ELMo weights.hdf5 and options.hdf5 files? #1
Comments
+1, that will be perfect for many developers... |
Sorry for late reply. To my understanding, our release is not directly portable to AllenNLP because we support unicode characters. This leads to difference in model architecture. We have a char_emb layer of variable length to convert unicode character to embeddings, while they use a fix-sized char embedding layer . Unfortunately, we don't have a good solution to make our release works with AllenNLP by now. |
For people looking for a quick and dirty way to embed a sentence at a time (which is slower than using batches) feel free to reuse my part copypated hacked up code. See |
For people looking to use AllenNLP framework - A few people asked me, so I thought it's better also to put it here if people reach this thread - However, that code still requires AllenNLP trained ELMos. I trained it for a few languages (unfortunately, not as many as in this great repo) and you can find more details here - https://github.com/TalSchuster/CrossLingualELMo |
Thanks for this work!
Could you please make available the weights and options file (in .hdf5 format), like how the allennlp pre-trained model works?
The text was updated successfully, but these errors were encountered: