Simple Bayes v1.0.0 SimpleBayes.Trainer.TokenStemmer

Link to this section Summary

Functions

Stems the word using stemmer. Passes the word through if it is false

Link to this section Functions

Link to this function stem(word, stemmer)

Stems the word using stemmer. Passes the word through if it is false.

Examples

iex> SimpleBayes.Trainer.TokenStemmer.stem("buying", false)
"buying"

iex> SimpleBayes.Trainer.TokenStemmer.stem("buying", &Stemmer.stem/1)
"buy"