2012/12/27 Mauro Condarelli <mc5...@mclink.it>
> I thus tried to avoid this particular error by adding the disambiguating
> rules below.
> What I wanted to say is: "PREposition or ARTicle cannot immediately
> preceded a VERb".
>
Hi Mauro,
Your disambiguation rule could be something like this (three in one):
<rule>
<pattern>
<token postag="PREP.*|ART.*" postag_regexp="yes"></token>
<marker>
<and>
<token postag="VER.*" postag_regexp="yes"></token>
<token postag="NOUN.*|ADJ.*" postag_regexp="yes"></token>
</and>
</marker>
</pattern>
<disambig action="filter" postag="[^V].*"></disambig>
<!-- Or: <disambig action="filter" postag="NOUN.*|ADJ.*"></disambig>-->
</rule>
However, the postag="VER.*" probably should be more restrictive. If
infinitives or participles are allowed after preposition, then you need to
change the postag regexp, or to add exceptions as postag regexps.
In Catalan there are similar rules. I invested a lot of effort into Catalan
disambiguation, and I imagine that some of the strategies I have used can
be useful for other Latin languages.
Regards,
Jaume Ortolà
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel