Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidLanguage ¶
ValidLanguage returns true if the given language is supported
Types ¶
type AnalysisStrategy ¶
the AnalysisStrategy interface is used to analyze a line of text and return a slice of words for a specific language
func GetStrategy ¶
func GetStrategy(language string) (AnalysisStrategy, error)
GetStrategy returns an AnalysisStrategy for the given language
type EnglishStrategy ¶
type EnglishStrategy struct {
// contains filtered or unexported fields
}
EnglishStrategy is an analysis strategy for English
func NewEnglishStrategy ¶
func NewEnglishStrategy() (*EnglishStrategy, error)
NewEnglishStrategy returns a new EnglishStrategy
type JapaneseStrategy ¶
type JapaneseStrategy struct {
// contains filtered or unexported fields
}
JapaneseStrategy is an AnalysisStrategy that uses the kagome tokenizer to tokenize Japanese text
func NewJapaneseStrategy ¶
func NewJapaneseStrategy() (*JapaneseStrategy, error)
NewJapaneseStrategy returns a new JapaneseStrategy
Click to show internal directories.
Click to hide internal directories.