Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deelipku23/8cafe86e92f6e6a689d440aea1bb7481 to your computer and use it in GitHub Desktop.
Save deelipku23/8cafe86e92f6e6a689d440aea1bb7481 to your computer and use it in GitHub Desktop.
from transformers import BertTokenizer
model_name = 'bert-base-uncased' # Pick any desired pre-trained model
# Defining BertTokenizer tokonizer
tokenizer = BertTokenizer.from_pretrained(model_name, do_lower_case=True, add_special_tokens=True,
max_length=128, pad_to_max_length=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment