Created
March 6, 2019 18:46
-
-
Save prateekjoshi565/c965598a9530df9c682e744b4bada581 to your computer and use it in GitHub Desktop.
elmo example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# just a random sentence | |
x = ["Roasted ants are a popular snack in Columbia"] | |
# Extract ELMo features | |
embeddings = elmo(x, signature="default", as_dict=True)["elmo"] | |
embeddings.shape |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment