Skip to content

Commit

Permalink
stub
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Jan 19, 2024
1 parent 5460db0 commit bf1dbe6
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions bindings/python/py_src/tokenizers/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,18 @@ class Tokenizer:
Returns:
A :obj:`List` of :class:`~tokenizers.Encoding`: The encoded batch
"""
pass
@property
def encode_special_tokens(self):
"""
Modifies the tokenizer in order to use or not the special tokens
during encoding.
Args:
value (:obj:`bool`):
Whether to use the special tokens or not
"""
pass
@staticmethod
Expand Down Expand Up @@ -1034,19 +1046,6 @@ class Tokenizer:
Whether the JSON file should be pretty formatted.
"""
pass
def set_encode_special_tokens(self, value):
"""
Modifies the tokenizer in order to use or not the special tokens
during encoding.
Args:
value (:obj:`bool`):
Whether to use the special tokens or not
Returns:
:obj:`Optional[str]`: An optional token, :obj:`None` if out of vocabulary
"""
pass
def to_str(self, pretty=False):
"""
Gets a serialized string representing this :class:`~tokenizers.Tokenizer`.
Expand Down

0 comments on commit bf1dbe6

Please sign in to comment.