Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PorterStemmer ¶
type PorterStemmer struct {
// contains filtered or unexported fields
}
PorterStemmer implements the Porter stemming algorithm for the portuguese language. The implementation was based in the following implementation: http://snowball.tartarus.org/algorithms/portuguese/stemmer.html
func NewPorterStemmer ¶
func NewPorterStemmer() *PorterStemmer
Create Porter stemmer struct. Vowels and necessary suffixes for the algorithm are also loaded in this step.
func (*PorterStemmer) Stem ¶
func (ps *PorterStemmer) Stem(word string) string
Stem executes all steps necessary to obtain a given word's stem. This function is used for portuguese stemming only.
Click to show internal directories.
Click to hide internal directories.