Last active
June 11, 2020 01:51
-
-
Save ferrygun/b8e5796dba5c21cd774d27b7f01398a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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