allenai / kb

KnowBert -- Knowledge Enhanced Contextual Word Representations
Apache License 2.0
371 stars 50 forks source link

Embeds sentences programmatically #6

Closed NooneBug closed 4 years ago

NooneBug commented 4 years ago

Hi,

I want to produce the contextual embeddings of sentences programmatically with KnowBert but the README talks about how to reproduce results and how to fine tune on downstream tasks.

How can I use this repository to obtain only contextual embeddings?

andr-ec commented 4 years ago

I would like to know this as well. Thanks!

matt-peters commented 4 years ago

Added some documentation in #10 that includes minimal code to load a trained model and embed raw text programmatically.

NooneBug commented 4 years ago

Thank a lot :)