Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SentencePieceProcessor ¶
type SentencePieceProcessor struct {
// contains filtered or unexported fields
}
func Load ¶
func Load(path string) (*SentencePieceProcessor, error)
func (*SentencePieceProcessor) Encode ¶
func (sp *SentencePieceProcessor) Encode(text string) ([]int, error)
func (*SentencePieceProcessor) Free ¶
func (sp *SentencePieceProcessor) Free()
Click to show internal directories.
Click to hide internal directories.