Wrong link to super class (#10709)

Documentation was referring to slow tokenizer class while it should be the fast tokenizer.
This commit is contained in:
cronoik 2021-03-15 12:39:10 +01:00 committed by GitHub
parent fcf10214e0
commit 4c41c6622c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ class PegasusTokenizerFast(PreTrainedTokenizerFast):
Construct a "fast" PEGASUS tokenizer (backed by HuggingFace's `tokenizers` library). Based on `Unigram
<https://huggingface.co/docs/tokenizers/python/latest/components.html?highlight=unigram#models>`__.
This tokenizer inherits from :class:`~transformers.PreTrainedTokenizer` which contains most of the main methods.
This tokenizer inherits from :class:`~transformers.PreTrainedTokenizerFast` which contains most of the main methods.
Users should refer to this superclass for more information regarding those methods.
Args: