Open edponce opened 4 years ago
More tokenizers can be included, see https://huggingface.co/transformers/main_classes/tokenizer.html pip install transformers
from transformers import BertTokenizer tokenizer = BertTokenizer.from_pretrained('bert-base-uncased') tokenizer.tokenize("Hello, world!")
More tokenizers can be included, see https://huggingface.co/transformers/main_classes/tokenizer.html pip install transformers