Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllTokenizers = map[string]Tokenizer{ "words": &Words{}, "nonwords": &RegexpNonWords{}, "alphaboundary": &AlphaBoundary{}, }
Functions ¶
This section is empty.
Types ¶
type AlphaBoundary ¶
type AlphaBoundary struct {
// contains filtered or unexported fields
}
func (*AlphaBoundary) Tokenize ¶
func (a *AlphaBoundary) Tokenize(in string) []string
type RegexpNonWords ¶
type RegexpNonWords struct{}
func (*RegexpNonWords) Tokenize ¶
func (r *RegexpNonWords) Tokenize(in string) []string
type TokenizerOptions ¶
type TokenizerOptions struct {
Name *string
}
func (*TokenizerOptions) AddFlags ¶
func (o *TokenizerOptions) AddFlags(fs *flag.FlagSet, prefix string)
func (*TokenizerOptions) Validate ¶
func (o *TokenizerOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.