Class NormalizationProfiles

java.lang.Object
opennlp.tools.util.normalizer.NormalizationProfiles

public final class NormalizationProfiles extends Object
A registry of NormalizationProfiles by language, with detection-based fallback: pick the profile for a requested language, or detect the language with a LanguageDetector when it is unspecified. The covered languages are the Snowball stemmer algorithms that name a natural language -- every SnowballStemmer.ALGORITHM except PORTER, which is an English-only algorithm variant rather than a distinct language. Several codes can map to one algorithm (the three Norwegian written standards all use NORWEGIAN).

Profiles are keyed by ISO 639-3 code (what LanguageDetector produces); forLanguage(String) also accepts ISO 639-1 two-letter codes and the ISO 639-2 bibliographic codes dut, fre and ger.