Created
December 7, 2017 10:27
-
-
Save rajeshmr/baf19456ff304f5ab85200c4d8bc9135 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
word_index = tokenizer.word_index | |
test_string = "sports action spy pen camera" | |
print("word\t\tid") | |
print("-" * 20) | |
for word in test_string.split(): | |
print("%s\t\t%s" % (word, word_index[word])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment