private static string getRootForm(LemmaSharp.ILemmatizer lmtz, string word) { string wordLower = word.ToLower(); string lemma = lmtz.Lemmatize(wordLower); return(lemma); }
public string LemmatizeOne(LemmaSharp.ILemmatizer lmtz, string word) { string wordLower = word.ToLower(); string lemma = lmtz.Lemmatize(wordLower); return(lemma); }
private static void LemmatizeOne(LemmaSharp.ILemmatizer lmtz, string word) { string wordLower = word.ToLower(); string lemma = lmtz.Lemmatize(wordLower); Console.ForegroundColor = wordLower == lemma ? ConsoleColor.White : ConsoleColor.Red; Console.WriteLine("{0,12} ==> {1}", word, lemma); }
private static string LemmatizeOne(LemmaSharp.ILemmatizer lmtz, string word) { string wordLower = word.ToLower(); string lemma = lmtz.Lemmatize(wordLower); Console.ForegroundColor = wordLower == lemma ? ConsoleColor.White : ConsoleColor.Red; return(lemma); }
void LemmatizeOne(LemmaSharp.ILemmatizer lmtz, ref string word) { string wordLower = word.ToLower(); word = lmtz.Lemmatize(wordLower); ForegroundColor = wordLower == word ? ConsoleColor.White : ConsoleColor.Red; //WriteLine("{0,20} ==> {1}", word, word); }