Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
elmo vectors function
def elmo_vectors(x):
embeddings = elmo(x.tolist(), signature="default", as_dict=True)["elmo"]
with tf.Session() as sess:
# return average of ELMo features
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.