Documentation
¶
Index ¶
Constants ¶
View Source
const ( LinderaDictURLKey = "lindera_download_urls" ResourceMapKey = "resource_map" DictPathKey = "local_dict_path" ResourcePathKey = "resource_path" )
Variables ¶
This section is empty.
Functions ¶
func HandleCStatus ¶
HandleCStatus deal with the error returned from CGO
func InitOptions ¶
func InitOptions()
func NewAnalyzer ¶
func NewAnalyzer(param string) (interfaces.Analyzer, error)
func UpdateParams ¶
func UpdateParams()
func ValidateAnalyzer ¶
Types ¶
type CAnalyzer ¶
type CAnalyzer struct {
// contains filtered or unexported fields
}
func NewCAnalyzer ¶
func NewCAnalyzer(ptr C.CTokenizer) *CAnalyzer
func (*CAnalyzer) NewTokenStream ¶
func (impl *CAnalyzer) NewTokenStream(text string) interfaces.TokenStream
type CTokenStream ¶
type CTokenStream struct {
// contains filtered or unexported fields
}
func NewCTokenStream ¶
func NewCTokenStream(ptr C.CTokenStream) *CTokenStream
func (*CTokenStream) Advance ¶
func (impl *CTokenStream) Advance() bool
func (*CTokenStream) Destroy ¶
func (impl *CTokenStream) Destroy()
func (*CTokenStream) DetailedToken ¶
func (impl *CTokenStream) DetailedToken() *milvuspb.AnalyzerToken
func (*CTokenStream) Token ¶
func (impl *CTokenStream) Token() string
Click to show internal directories.
Click to hide internal directories.