Simple Bayes v0.12.0 SimpleBayes.Trainer.TokenStemmer

Summary

Functions

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

Functions

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"