Last active
July 17, 2020 14:34
-
-
Save prateekjoshi565/48bc03ad0e2a66cc3c1b065cecc373db 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
# sample data | |
text = ["this is a bert model tutorial", "we will fine-tune a bert model"] | |
# encode text | |
sent_id = tokenizer.batch_encode_plus(text, padding=True) | |
# output | |
print(sent_id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment