Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
eaplatanios committed Jan 23, 2024
1 parent 164f8fe commit 082f800
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bindings/python/py_src/tokenizers/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,17 @@ class Tokenizer:
Whether the JSON file should be pretty formatted.
"""
pass
def set_added_tokens_decoder(self, added_tokens_decoder, encode_special_tokens=False):
"""
Sets the underlying added tokens vocabulary
Args:
added_tokens_decoder (:obj:`Dict[int, AddedToken]`):
Map from added token ID to :obj:`AddedToken`.
encode_special_tokens (:obj:`bool`, defaults to :obj:`False`):
Whether or not special tokens should be split when encoding. This is equivalent to ignoring them.
"""
pass
def to_str(self, pretty=False):
"""
Gets a serialized string representing this :class:`~tokenizers.Tokenizer`.
Expand Down

0 comments on commit 082f800

Please sign in to comment.