class Cadmium::Lemmatizer
- Cadmium::Lemmatizer
- Reference
- Object
Overview
Cadmium::Lemmatizer returns an Array of possible lemmas strings according to provided LemmaData at its initialization.
Defined in:
cadmium/lemmatizer/lemmatizer.crConstructors
-
.new(data : Cadmium::LemmaData = LemmaData.new)
By default english LemmaData is provided.You can find data for several languages in the cadmiumcr/languages repo.
Instance Method Summary
-
#lemmatize(token : Token, index = @data.index, lookup = @data.lookup, exceptions = @data.exceptions, rules = @data.rules)
Returns an Array of possible lemmas strings ameba:disable Metrics/CyclomaticComplexity
Constructor Detail
By default english LemmaData is provided.You can find data for several languages in the cadmiumcr/languages repo.
Instance Method Detail
def lemmatize(token : Token, index = @data.index, lookup = @data.lookup, exceptions = @data.exceptions, rules = @data.rules)
#
Returns an Array of possible lemmas strings ameba:disable Metrics/CyclomaticComplexity