Documentation
¶
Index ¶
Constants ¶
View Source
const Formats = "" /* 186-byte string literal not displayed */
Formats names the tokenizer files Load reads, in the order it looks for them
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddedToken ¶
type AddedToken struct {
ID int `json:"id"`
Content string `json:"content"`
SingleWord bool `json:"single_word"`
LStrip bool `json:"lstrip"`
RStrip bool `json:"rstrip"`
Normalized bool `json:"normalized"`
Special bool `json:"special"`
}
AddedToken is a token cut out of the text before the model runs
type Tokenizer ¶
type Tokenizer struct {
// contains filtered or unexported fields
}
Tokenizer runs the pipeline one tokenizer.json describes
Source Files
¶
Click to show internal directories.
Click to hide internal directories.