Last active
October 8, 2019 14:39
-
-
Save kabirahuja2431/33a14281f6ef6cf0f1bf9caa9e069907 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Obtaining indices for each token | |
sent_ids = tokenizer.convert_tokens_to_ids(padded_tokens) | |
print(sent_ids) | |
# Out: [101, 1045, 2428, 5632, 2023, 3185, 1037, 2843, 1012, 102, 0, 0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment