class Cadmium::Lemmatizer

Overview

Cadmium::Lemmatizer returns an Array of possible lemmas strings according to provided LemmaData at its initialization.

Defined in:

cadmium/lemmatizer/lemmatizer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : Cadmium::LemmaData = LemmaData.new) #

By default english LemmaData is provided.You can find data for several languages in the cadmiumcr/languages repo.


[View source]

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


[View source]