Skip to content

Conversation

@stefan-it
Copy link
Member

@stefan-it stefan-it commented Feb 14, 2019

Hi,

this PR adds support for the recently released PubMed model for ELMo.

Example usage:

from flair.data import Sentence
from flair.embeddings import ELMoEmbeddings

sentence = Sentence("Diabetes insipidus : The other diabetes")
embeddings = ELMoEmbeddings('pubmed')

embeddings.embed(sentence)

for token in sentence.tokens:
  print(token.get_embeddings())

Closes #502

@stefan-it stefan-it requested a review from alanakbik February 14, 2019 23:14
@alanakbik
Copy link
Collaborator

alanakbik commented Feb 15, 2019

This is great, thanks!

@alanakbik
Copy link
Collaborator

👍

@alanakbik alanakbik requested a review from kashif February 15, 2019 06:19
@gokyildirim
Copy link

👍

@alanakbik alanakbik merged commit d853ca5 into master Feb 15, 2019
@kashif kashif deleted the GH-502-pubmed-elmo branch February 15, 2019 08:59
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

Successfully merging this pull request may close these issues.

4 participants