Skip to content

Instantly share code, notes, and snippets.

@eustin
Created June 8, 2020 04:15
Show Gist options
  • Save eustin/b1f8b37756ead3395ddc2d2b37be2805 to your computer and use it in GitHub Desktop.
Save eustin/b1f8b37756ead3395ddc2d2b37be2805 to your computer and use it in GitHub Desktop.
query_1_embedding_index = tokeniser.texts_to_sequences([query_1])
query_1_embeddings = np.array([embeddings[x] for x in query_1_embedding_index])
print(query_1_embeddings)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment