Docs: change some input_ids doc reference from BertTokenizer to AutoTokenizer (#24730)

This commit is contained in:
Joao Gante
2023-07-10 17:57:26 +01:00
committed by GitHub
parent 2541108564
commit a074a5d34d
14 changed files with 17 additions and 17 deletions

View File

@@ -851,7 +851,7 @@ class TF{{cookiecutter.camelcase_modelname}}PreTrainedModel(TFPreTrainedModel):
input_ids (`np.ndarray`, `tf.Tensor`, `List[tf.Tensor]`, `Dict[str, tf.Tensor]` or `Dict[str, np.ndarray]` and each example must have the shape `({0})`):
Indices of input sequence tokens in the vocabulary.
Indices can be obtained using [`BertTokenizer`]. See
Indices can be obtained using [`AutoTokenizer`]. See
[`PreTrainedTokenizer.__call__`] and [`PreTrainedTokenizer.encode`] for
details.