Buckets:
Added Tokens
AddedToken[[tokenizers.AddedToken]]
content (
str) -- The content of the tokensingle_word (
bool, defaults toFalse) -- Defines whether this token should only match single words. IfTrue, this token will never match inside of a word. For example the tokeningwould match ontokenizingif this option isFalse, but not if it isTrue. The notion of "inside of a word" is defined by the word boundaries pattern in regular expressions (ie. the token should start and end with word boundaries).lstrip (
bool, defaults toFalse) -- Defines whether this token should strip all potential whitespaces on its left side. IfTrue, this token will greedily match any whitespace on its left. For example if we try to match the token[MASK]withlstrip=True, in the text"I saw a [MASK]", we would match on" [MASK]". (Note the space on the left).rstrip (
bool, defaults toFalse) -- Defines whether this token should strip all potential whitespaces on its right side. IfTrue, this token will greedily match any whitespace on its right. It works just likelstripbut on the right.normalized (
bool, defaults toTruewith --meth:~tokenizers.Tokenizer.add_tokens andFalsewithadd_special_tokens()): Defines whether this token should match against the normalized version of the input text. For example, with the added token"yesterday", and a normalizer in charge of lowercasing the text, the token could be extract from the input"I saw a lion Yesterday".special (
bool, defaults toFalsewith --meth:~tokenizers.Tokenizer.add_tokens andFalsewithadd_special_tokens()): Defines whether this token should be skipped when decoding. Represents a token that can be be added to a Tokenizer. It can have special options that defines the way it should behave.
Get the content of this AddedToken
Get the value of the lstrip option
Get the value of the normalized option
Get the value of the rstrip option
Get the value of the single_word option
The Rust API Reference is available directly on the Docs.rs website.
The node API has not been documented yet.
Xet Storage Details
- Size:
- 2.33 kB
- Xet hash:
- c8e4e3ba6e884c3b58d936e0ec7f1e0edb43029a97a17f58fb15381ba857b063
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.