View Source Haystack.Transformer.Stemmer (Haystack v0.1.0)
A transformer for stemming words.
Link to this section Summary
Functions
Apply a stemming transformation on a list of tokens.
Link to this section Functions
Apply a stemming transformation on a list of tokens.
examples
Examples
iex> tokens = Tokenizer.tokenize("Needle in a Haystack")
iex> tokens = Transformer.Stemmer.transform(tokens)
iex> Enum.map(tokens, & &1.v)
~w{needl in a haystack}