Simple Bayes v0.7.1 SimpleBayes.Trainer.TokenStemmer

Summary

Functions

Stems the word, or passes the word through

Functions

stem(word, arg2)

Stems the word, or passes the word through.

Examples

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

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

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