Documentation ¶
Index ¶
- Constants
- Variables
- func AnalyzerConstructor(config map[string]interface{}, cache *registry.Cache) (*analysis.Analyzer, error)
- func CroatianStemmerFilterConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error)
- func StopTokenFilterConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error)
- func SuffixTransformationFilterConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error)
- func TokenMapConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenMap, error)
- type CroatianStemmerFilter
- type SuffixTransformationFilter
Constants ¶
View Source
const AnalyzerName = "hr"
View Source
const StemmerName = "stemmer_hr"
View Source
const StopName = "stop_hr"
View Source
const SuffixTransformationFilterName = "hr_suffix_transformation_filter"
Variables ¶
View Source
var CroatianStopWords = []byte(`biti
jesam
budem
sam
jesi
budeš
si
jesmo
budemo
smo
jeste
budete
ste
jesu
budu
su
bih
bijah
bjeh
bijaše
bi
bje
bješe
bijasmo
bismo
bjesmo
bijaste
biste
bjeste
bijahu
biste
bjeste
bijahu
bi
biše
bjehu
bješe
bio
bili
budimo
budite
bila
bilo
bile
ću
ćeš
će
ćemo
ćete
želim
želiš
želi
želimo
želite
žele
moram
moraš
mora
moramo
morate
moraju
trebam
trebaš
treba
trebamo
trebate
trebaju
mogu
možeš
može
možemo
možete
za
`)
View Source
var SuffixTransformations = map[string]string{}/* 128 elements not displayed */
Functions ¶
func AnalyzerConstructor ¶
Types ¶
type CroatianStemmerFilter ¶
type CroatianStemmerFilter struct{}
func NewCroatianStemmerFilter ¶
func NewCroatianStemmerFilter() *CroatianStemmerFilter
func (*CroatianStemmerFilter) Filter ¶
func (s *CroatianStemmerFilter) Filter(input analysis.TokenStream) analysis.TokenStream
type SuffixTransformationFilter ¶
type SuffixTransformationFilter struct{}
func NewSuffixTransformationFilter ¶
func NewSuffixTransformationFilter() *SuffixTransformationFilter
func (*SuffixTransformationFilter) Filter ¶
func (s *SuffixTransformationFilter) Filter(input analysis.TokenStream) analysis.TokenStream
Click to show internal directories.
Click to hide internal directories.