cjk

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 9

Documentation

Index

Constants

View Source
const AnalyzerName = "cjk"
View Source
const BigramName = "cjk_bigram"
View Source
const WidthName = "cjk_width"

Variables

This section is empty.

Functions

func AnalyzerConstructor

func AnalyzerConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.Analyzer, error)

func CJKBigramFilterConstructor

func CJKBigramFilterConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error)

func CJKWidthFilterConstructor

func CJKWidthFilterConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error)

Types

type CJKBigramFilter

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

func NewCJKBigramFilter

func NewCJKBigramFilter(outputUnigram bool) *CJKBigramFilter

func (*CJKBigramFilter) Filter

type CJKWidthFilter

type CJKWidthFilter struct{}

func NewCJKWidthFilter

func NewCJKWidthFilter() *CJKWidthFilter

func (*CJKWidthFilter) Filter

Jump to

Keyboard shortcuts

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