Buckets:
Input Sequences
Not supported by the rc0 bindings yet. rc0 loads a tokenizer.json and encodes and
decodes with it — building a tokenizer from its components, editing one, saving one
and training are not exposed. They are coming soon, along with the other bindings.
See REQUIRED_FOR_V1.md for the full list.
These types represent all the different kinds of sequence that can be used as input of a Tokenizer.
Globally, any sequence can be either a string or a list of strings, according to the operating
mode of the tokenizer: raw text vs pre-tokenized.
TextInputSequence[[tokenizers.TextInputSequence]]
tokenizers.TextInputSequence
A str that represents an input sequence
PreTokenizedInputSequence[[tokenizers.PreTokenizedInputSequence]]
tokenizers.PreTokenizedInputSequence
A pre-tokenized input sequence. Can be one of:
- A
Listofstr - A
Tupleofstr
alias of Union[List[str], Tuple[str]].
InputSequence[[tokenizers.InputSequence]]
tokenizers.InputSequence
Represents all the possible types of input sequences for encoding. Can be:
- When
is_pretokenized=False: TextInputSequence - When
is_pretokenized=True: PreTokenizedInputSequence
alias of Union[str, List[str], Tuple[str]].
The Rust API Reference is available directly on the Docs.rs website.
Xet Storage Details
- Size:
- 1.5 kB
- Xet hash:
- de830fbfd71463d02d3924cb49f2cffc09813a1e8c8615480947900fc674dc9b
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.