Created
June 27, 2020 09:03
-
-
Save prateekjoshi565/a6a446f35fd5ccc6410f1dff0adc15cc 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
# encode pre-tokenized text string | |
encoded_output_2 = tokenizer.encode(sentence.split(), is_pretokenized=True) | |
print(encoded_output_2.tokens) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment