canalyzer

package
v0.10.3-0...-96d0e78 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LinderaDictURLKey = "lindera_download_urls"
	ResourceMapKey    = "resource_map"
	DictPathKey       = "local_dict_path"
	ResourcePathKey   = "resource_path"
)

Variables

This section is empty.

Functions

func HandleCStatus

func HandleCStatus(status *C.CStatus, extraInfo string) error

HandleCStatus deal with the error returned from CGO

func InitOptions

func InitOptions()

func NewAnalyzer

func NewAnalyzer(param string) (interfaces.Analyzer, error)

func UpdateParams

func UpdateParams()

func ValidateAnalyzer

func ValidateAnalyzer(param string) error

Types

type CAnalyzer

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

func NewCAnalyzer

func NewCAnalyzer(ptr C.CTokenizer) *CAnalyzer

func (*CAnalyzer) Clone

func (impl *CAnalyzer) Clone() (interfaces.Analyzer, error)

func (*CAnalyzer) Destroy

func (impl *CAnalyzer) Destroy()

func (*CAnalyzer) NewTokenStream

func (impl *CAnalyzer) NewTokenStream(text string) interfaces.TokenStream

type CTokenStream

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

func NewCTokenStream

func NewCTokenStream(ptr C.CTokenStream) *CTokenStream

func (*CTokenStream) Advance

func (impl *CTokenStream) Advance() bool

func (*CTokenStream) Destroy

func (impl *CTokenStream) Destroy()

func (*CTokenStream) DetailedToken

func (impl *CTokenStream) DetailedToken() *milvuspb.AnalyzerToken

func (*CTokenStream) Token

func (impl *CTokenStream) Token() string

Jump to

Keyboard shortcuts

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