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