Skip to content

Instantly share code, notes, and snippets.

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