From 4c41c6622c556d2b5bf2df1f7adad0f3a6a6e445 Mon Sep 17 00:00:00 2001 From: cronoik Date: Mon, 15 Mar 2021 12:39:10 +0100 Subject: [PATCH] Wrong link to super class (#10709) Documentation was referring to slow tokenizer class while it should be the fast tokenizer. --- src/transformers/models/pegasus/tokenization_pegasus_fast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/models/pegasus/tokenization_pegasus_fast.py b/src/transformers/models/pegasus/tokenization_pegasus_fast.py index 626d930398a..721d5ef9c3b 100644 --- a/src/transformers/models/pegasus/tokenization_pegasus_fast.py +++ b/src/transformers/models/pegasus/tokenization_pegasus_fast.py @@ -54,7 +54,7 @@ class PegasusTokenizerFast(PreTrainedTokenizerFast): Construct a "fast" PEGASUS tokenizer (backed by HuggingFace's `tokenizers` library). Based on `Unigram `__. - 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: