Ejemplo n.º 1
0
 /// <summary>Return a new WordTag which has the lemma as the value of word().</summary>
 /// <remarks>
 /// Return a new WordTag which has the lemma as the value of word().
 /// The default is to lowercase non-proper-nouns, unless options have
 /// been set.
 /// </remarks>
 public static WordTag StemStatic(string word, string tag)
 {
     lock (typeof(Morphology))
     {
         InitStaticLexer();
         return(new WordTag(Lemmatize(word, tag, staticLexer, staticLexer.Option(1)), tag));
     }
 }
Ejemplo n.º 2
0
 public virtual string Lemma(string word, string tag)
 {
     return(Lemmatize(word, tag, lexer, lexer.Option(1)));
 }