Skip to content

Instantly share code, notes, and snippets.

Last active Jun 11, 2020
What would you like to do?
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