Created
June 30, 2020 07:53
-
-
Save deelipku23/87d1cb039ccd9000e98b1932c381432c 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
from transformers import XLNetTokenizer | |
model = 'xlnet-base-cased' # Pick any desired pre-trained model | |
# Defining XLNET tokonizer | |
tokenizer = XLNetTokenizer.from_pretrained(distil_bert, 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