Skip to content

Instantly share code, notes, and snippets.

@kabirahuja2431
Last active October 8, 2019 14:35
Show Gist options
  • Save kabirahuja2431/5cd0f8f0b7bcd0b1e77f5d7b358f3af5 to your computer and use it in GitHub Desktop.
Save kabirahuja2431/5cd0f8f0b7bcd0b1e77f5d7b358f3af5 to your computer and use it in GitHub Desktop.
tokens = ['[CLS]'] + tokens + ['[SEP]']
print(tokens)
# Out: ['[CLS]', 'i', 'really', 'enjoyed', 'this', 'movie', 'a', 'lot', '.', '[SEP]']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment