Versions in this module Expand all Collapse all v0 v0.1.18 Nov 13, 2026 Changes in this version + var ErrNoEmbedding = native.NewError("no_embedding") + var ErrUndetermined = native.NewError("undetermined") + type Analyzer interface + Chunks func(ctx context.Context, text string, size int) iter.Seq2[*native.Buffer, error] + Count func(text string, progress func(word string, index int)) int + DetectLanguage func(text string) (string, error) + Embedding func(ctx context.Context, language string) (Embedding, error) + Hypotheses func(text string, max int) (map[string]float64, error) + Sleep func(ctx context.Context, d time.Duration) error + Suggest func(ctx context.Context, e Embedding, word string, r Ranker) iter.Seq2[string, error] + Ticks func(interval time.Duration, f func(n int)) io.Closer + Tokens func(ctx context.Context, text string, unit Unit) iter.Seq2[Token, error] + Uppercase func(text string, buf *native.Buffer) (int, error) + func NewAnalyzer() (Analyzer, error) + type Embedding interface + Distance func(a, b string) float64 + Neighbors func(word string, n int) []string + type Ranker interface + Explain func(ctx context.Context, word string) (string, error) + Score func(word string) float64 + type Token struct + End int + Start int + Text string + type Unit string + const Paragraph + const Sentence + const Word