classifier

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Classifier

type Classifier interface {
	Classify(content string) models.MemoryType
}

Classifier determines the type of a memory.

type HeuristicClassifier

type HeuristicClassifier struct {
	// contains filtered or unexported fields
}

HeuristicClassifier uses keyword-based rules for classification.

func NewClassifier

func NewClassifier(logger *slog.Logger) *HeuristicClassifier

NewClassifier creates a new heuristic-based classifier.

func (*HeuristicClassifier) Classify

func (c *HeuristicClassifier) Classify(content string) models.MemoryType

Classify determines the memory type from content using heuristics.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL