segmenter

package
v0.0.0-...-b7aeced Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupported = errors.New("unsupported type")
)

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Segment(ctx context.Context, text string, options *SegmentOptions) ([]Segment, error)
}

type Segment

type Segment struct {
	Text string
}

type SegmentOptions

type SegmentOptions struct {
	FileName string

	SegmentLength  *int
	SegmentOverlap *int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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