Versions in this module Expand all Collapse all v0 v0.7.1 Oct 28, 2026 Changes in this version + type ModelInfo struct + BeginningOfSentenceID int + EndOfSentenceID int + PadID int + UnknownID int + VocabularySize int + type Processor struct + func NewProcessor(protoReader io.Reader) (*Processor, error) + func NewProcessorFromPath(protoFile string) (*Processor, error) + func (proc *Processor) Decode(ids []int) string + func (proc *Processor) DecodeTokens(tokens []Token) string + func (proc *Processor) Encode(text string) []Token + func (proc *Processor) ModelInfo() *ModelInfo + type Token struct + ID int + Text string + func (t Token) String() string