Simple Bayes v0.6.0 SimpleBayes.Trainer.TokenStemmer

Summary

Functions

Catalogs tokens based on their training categories

Functions

stem(word, arg2)

Catalogs tokens based on their training categories.

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"