File size: 280 Bytes
5fa1a76
 
 
 
 
1
2
3
4
5
from transformers import TFDistilBertForQuestionAnswering
tf_model = TFDistilBertForQuestionAnswering.from_pretrained("distilbert/distilbert-base-uncased")

Tokenizer
The last base class you need before using a model for textual data is a tokenizer to convert raw text to tensors.