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 ¶
func CJKWidthFilterConstructor ¶ added in v0.3.0
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 ¶ added in v0.3.0
type CJKWidthFilter struct{}
func NewCJKWidthFilter ¶ added in v0.3.0
func NewCJKWidthFilter() *CJKWidthFilter
func (*CJKWidthFilter) Filter ¶ added in v0.3.0
func (s *CJKWidthFilter) Filter(input analysis.TokenStream) analysis.TokenStream
Click to show internal directories.
Click to hide internal directories.