static RomanianLemmatizer() { m_lemmatizer = new LemmatizerPrebuiltCompressed(LanguagePrebuilt.Romanian); }
static CzechLemmatizer() { m_lemmatizer = new LemmatizerPrebuiltCompressed(LanguagePrebuilt.Czech); }
static SloveneLemmatizer() { m_lemmatizer = new LemmatizerPrebuiltCompressed(LanguagePrebuilt.Slovene); }
public static void GetLanguageTools(Language language, out Set <string> .ReadOnly stopWords, out IStemmer stemmer) { switch (language) { case Language.Bulgarian: stopWords = StopWords.BulgarianStopWords; stemmer = new Lemmatizer(language); break; case Language.Czech: stopWords = StopWords.CzechStopWords; stemmer = new Lemmatizer(language); break; case Language.Danish: stopWords = StopWords.DanishStopWords; stemmer = new Stemmer(language); break; case Language.Dutch: stopWords = StopWords.DutchStopWords; stemmer = new Stemmer(language); break; case Language.English: stopWords = StopWords.EnglishStopWords; stemmer = new Stemmer(language); break; case Language.Estonian: stopWords = null; // *** stop words are missing stemmer = new Lemmatizer(language); break; case Language.Finnish: stopWords = StopWords.FinnishStopWords; stemmer = new Stemmer(language); break; case Language.French: stopWords = StopWords.FrenchStopWords; stemmer = new Stemmer(language); break; case Language.German: stopWords = StopWords.GermanStopWords; stemmer = new Stemmer(language); break; case Language.Hungarian: stopWords = StopWords.HungarianStopWords; stemmer = new Lemmatizer(language); break; case Language.Italian: stopWords = StopWords.ItalianStopWords; stemmer = new Stemmer(language); break; case Language.Norwegian: stopWords = StopWords.NorwegianStopWords; stemmer = new Stemmer(language); break; case Language.Portuguese: stopWords = StopWords.PortugueseStopWords; stemmer = new Stemmer(language); break; case Language.Romanian: stopWords = StopWords.RomanianStopWords; stemmer = new Lemmatizer(language); break; case Language.Russian: stopWords = StopWords.RussianStopWords; stemmer = new Stemmer(language); break; case Language.Serbian: stopWords = StopWords.SerbianStopWordsLatin; stemmer = new Lemmatizer(language); break; case Language.Slovene: stopWords = StopWords.SloveneStopWords; stemmer = new Lemmatizer(language); break; case Language.Spanish: stopWords = StopWords.SpanishStopWords; stemmer = new Stemmer(language); break; case Language.Swedish: stopWords = StopWords.SwedishStopWords; stemmer = new Stemmer(language); break; default: throw new ArgumentNotSupportedException("language"); } }
static EnglishLemmatizer() { m_lemmatizer = new LemmatizerPrebuiltCompressed(LanguagePrebuilt.English); }
static HungarianLemmatizer() { m_lemmatizer = new LemmatizerPrebuiltCompressed(LanguagePrebuilt.Hungarian); }
static SerbianLemmatizer() { m_lemmatizer = new LemmatizerPrebuiltCompressed(LanguagePrebuilt.Serbian); }
static SpanishLemmatizer() { m_lemmatizer = new LemmatizerPrebuiltCompressed(LanguagePrebuilt.Spanish); }
static GermanLemmatizer() { m_lemmatizer = new LemmatizerPrebuiltCompressed(LanguagePrebuilt.German); }
static ItalianLemmatizer() { m_lemmatizer = new LemmatizerPrebuiltCompressed(LanguagePrebuilt.Italian); }
static EstonianLemmatizer() { m_lemmatizer = new LemmatizerPrebuiltCompressed(LanguagePrebuilt.Estonian); }