paddlenlp/transformers/albert/tokenizer.py
def num_special_tokens_to_add(self, pair=False):
        """
        Returns the number of added tokens when encoding a sequence with special tokens.

        Args:
            pair(bool):
                Whether the input is a sequence pair or a single sequence.
                Defaults to `False` and the input is a single sequence.

        Returns:
            int: Number of tokens added to sequences.
        """
        return self.tokenizer.num_special_tokens_to_add(pair=pair)

        Returns the number of added tokens when encoding a sequence with special tokens.

        Args:
            pair(bool):
                Whether the input is a sequence pair or a single sequence.
                Defaults to `False` and the input is a single sequence.

        Returns:
            int: Number of tokens added to sequences.
        
Returns the number of added tokens when encoding a sequence with special tokens.
Returns the number of added tokens when encoding a sequence with special tokens .
def num_special_tokens_to_add(self, pair=False):
        return self.tokenizer.num_special_tokens_to_add(pair=pair)
def num_special_tokens_to_add ( self , pair = False ) : return self . tokenizer . num_special_tokens_to_add ( pair = pair )
Returns the number of added tokens when encoding a sequence with special tokens.
Returns the number of added tokens when encoding a sequence with special tokens .
"""
        Returns the number of added tokens when encoding a sequence with special tokens.

        Args:
            pair(bool):
                Whether the input is a sequence pair or a single sequence.
                Defaults to `False` and the input is a single sequence.

        Returns:
            int: Number of tokens added to sequences.
        """
Number of tokens added to sequences.
Number of tokens added to sequences .
int
self
pair
Whether the input is a sequence pair or a single sequence.
Defaults to `False` and the input is a single sequence.
Whether the input is a sequence pair or a single sequence . Defaults to ` False ` and the input is a single sequence .