W dniu 2013-08-14 17:15, gulp21 pisze:
> Hi,
>
>> So add a rule in a disambiguator to tag the dot. Easy peasy.
>
> now I tried to add a disambiguator for German. Tagging of the dot works,
> but when checking (or running tests) I get this exception:
>
> java.lang.ClassCastException: org.languagetool.AnalyzedToken cannot be
> cast to org.languagetool.tagging.de.AnalyzedGermanToken

AnalyzedGermanTokens have more features than AnalyzedTokens, so adding 
an AnalyzedToken instead of AGT in the disambiguator creates type 
mismatch...

I'm not sure how to fix this - either you'd have to subclass the 
disambiguator code for German or remove AnalyzedGermanToken...

Regards,
Marcin

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to