Package com.gengoai.hermes.morphology
Class Lemmatizers
- java.lang.Object
-
- com.gengoai.hermes.morphology.Lemmatizers
-
public final class Lemmatizers extends Object
Factory class for creating/retrieving lemmatizers for a given language
- Author:
- David B. Bracewell
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Lemmatizer
getLemmatizer(@NonNull Language language)
Gets the Lemmatizer for the given language as defined in the config optionhermes.Lemmatizer.LANGUAGE
.
-
-
-
Method Detail
-
getLemmatizer
public static Lemmatizer getLemmatizer(@NonNull @NonNull Language language)
Gets the Lemmatizer for the given language as defined in the config optionhermes.Lemmatizer.LANGUAGE
. if no lemmatizer is specified a no-op lemmatizer is returned.- Parameters:
language
- The language- Returns:
- The Lemmatizer for the language
-
-