Unverified Commit 4c41c662 authored by cronoik's avatar cronoik Committed by GitHub
Browse files

Wrong link to super class (#10709)

Documentation was referring to slow tokenizer class while it should be the fast tokenizer.
parent fcf10214
...@@ -54,7 +54,7 @@ class PegasusTokenizerFast(PreTrainedTokenizerFast): ...@@ -54,7 +54,7 @@ class PegasusTokenizerFast(PreTrainedTokenizerFast):
Construct a "fast" PEGASUS tokenizer (backed by HuggingFace's `tokenizers` library). Based on `Unigram 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>`__. <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. Users should refer to this superclass for more information regarding those methods.
Args: Args:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment