Documentation ¶
Overview ¶
Package bleve fork from github.com/wangbin/jiebago and update bleve version
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JiebaTokenizerConstructor ¶
func JiebaTokenizerConstructor(config map[string]interface{}, _ *registry.Cache) (analysis.Tokenizer, error)
JiebaTokenizerConstructor creates a JiebaTokenizer.
Parameter config should contains at least one parameter:
file: the path of the dictionary file. hmm: optional, specify whether to use Hidden Markov Model, see NewJiebaTokenizer for details. search: optional, speficy whether to use search mode, see NewJiebaTokenizer for details.
Types ¶
type JiebaTokenizer ¶
type JiebaTokenizer struct {
// contains filtered or unexported fields
}
JiebaTokenizer is the beleve tokenizer for jiebago.
func (*JiebaTokenizer) Tokenize ¶
func (jt *JiebaTokenizer) Tokenize(input []byte) analysis.TokenStream
Tokenize cuts input into bleve token stream.
Click to show internal directories.
Click to hide internal directories.