On 2014-01-27 15:44, Richard Eckart de Castilho wrote:

> I would like a method that accepts an inflected form and a pos tag and
> that returns a single lemma.

A language-specific list of POS tags is available in the synthesizer (if 
the language has one) as BaseSynthesizer.possibleTags (it's not public 
but protected).

You can use your own tagger by overwriting getTagger() in 
<Language>.java but its tags would need to be the same as the original 
ones, otherwise rules wouldn't match anymore.

To answer the original question, I don't know of a cleaner way to lookup 
single words either.

Regards
  Daniel


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to