Documentation ¶
Index ¶
- Constants
- func AnalyzerConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.Analyzer, error)
- func CJKBigramFilterConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error)
- func CJKWidthFilterConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error)
- type CJKBigramFilter
- type CJKWidthFilter
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 ¶
Types ¶
type CJKBigramFilter ¶
type CJKBigramFilter struct {
// contains filtered or unexported fields
}
func NewCJKBigramFilter ¶
func NewCJKBigramFilter(outputUnigram bool) *CJKBigramFilter
func (*CJKBigramFilter) Filter ¶
func (s *CJKBigramFilter) Filter(input analysis.TokenStream) analysis.TokenStream
type CJKWidthFilter ¶
type CJKWidthFilter struct{}
func NewCJKWidthFilter ¶
func NewCJKWidthFilter() *CJKWidthFilter
func (*CJKWidthFilter) Filter ¶
func (s *CJKWidthFilter) Filter(input analysis.TokenStream) analysis.TokenStream
Click to show internal directories.
Click to hide internal directories.