tagging

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotEnabled = errors.New("tagging engine is not enabled")
)

Functions

func Enabled

func Enabled() bool

Types

type PredictResult

type PredictResult struct {
	PredictedTags []string           `json:"predicted_tags"`
	Scores        map[string]float64 `json:"scores"`
}

type Tagger

type Tagger interface {
	Predict(ctx context.Context, file io.Reader) (map[string]float64, error)
}

func Default

func Default() Tagger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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