Skip to content

Instantly share code, notes, and snippets.

@ferrygun
Last active June 11, 2020 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferrygun/b8e5796dba5c21cd774d27b7f01398a8 to your computer and use it in GitHub Desktop.
Save ferrygun/b8e5796dba5c21cd774d27b7f01398a8 to your computer and use it in GitHub Desktop.
i = 1586
p = model.predict(np.array([X_test[i]]))
p = np.argmax(p, axis=-1)
print("{:15} {:5}".format("Word", "Pred"))
for w, pred in zip(X_test[i], p[0]):
print("{:15}: {}".format(words[w], tags[pred]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment