예제 #1
0
        private static string getRootForm(LemmaSharp.ILemmatizer lmtz, string word)
        {
            string wordLower = word.ToLower();
            string lemma     = lmtz.Lemmatize(wordLower);

            return(lemma);
        }
예제 #2
0
        public string LemmatizeOne(LemmaSharp.ILemmatizer lmtz, string word)
        {
            string wordLower = word.ToLower();
            string lemma     = lmtz.Lemmatize(wordLower);

            return(lemma);
        }
예제 #3
0
        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);
        }
예제 #5
0
        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);
        }