Documentation ¶
Index ¶
- Constants
- func AnalyzerJiebaConstructor(config map[string]interface{}, cache *registry.Cache) (*analysis.Analyzer, error)
- func CheckDictFiles(dict string) error
- func JiebaTokenizerConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.Tokenizer, error)
- func NewIndexWithJieba(findex string, dictPath string, searchmode bool, readOnly bool) (bleve.Index, error)
- func NewJiebaTokenizer(dictFilePath, hmm, userDictPath, idfDict, stopDict string, searchMode bool) (analysis.Tokenizer, error)
- func NewMemIndexWithJieba(dictPath string, searchmode bool) (bleve.Index, error)
- func StopTokenFilterJiebaConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error)
- func TokenMapJiebaConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenMap, error)
- type JiebaTokenizer
Constants ¶
View Source
const (
JiebaName = "jieba"
)
JiebaName is the jieba analyzer/tokenizer name.
Variables ¶
This section is empty.
Functions ¶
func CheckDictFiles ¶
func NewIndexWithJieba ¶
func NewJiebaTokenizer ¶
func NewMemIndexWithJieba ¶
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.