El 2017-10-25 08:54, Hèctor Alòs i Font escribió:
This question is about CG, but since it seems this is quite related to
the "bridge" between Apertium and CG I put it here.

I've never understood well how to select in CG enclitic pronouns. I
have a specific question about Catalan.

We have this:

echo "donant-los" | apertium -d . cat-disam
"<donant-los>"
    "donar" vblex ger
        "el" prn enc p3 m pl
    "donar" vblex ger
        "li" prn enc p3 mf pl
"<.>"
    "." sent

I want to write a few rules for disambiguating "los", specifically
choosing "li" ("el" seems to be the choice always or most of the
time).

So I've defined a very simple rule (which is wrong, but it's just a
beginning):

SET VCD_CI = ("donar") OR ("dar") ; # this is a list of verbs
LIST Li = "li" ;
SELECT Li IF (0/* VCD_CI) ;

But this rule does not match. I still receive:

echo "donant-los" | apertium -d . cat-disam
"<donant-los>"
    "donar" vblex ger
        "el" prn enc p3 m pl
    "donar" vblex ger
        "li" prn enc p3 mf pl
"<.>"
    "." sent

What is wrong?

Try:

 SELECT SUB:1 Li IF (0/* VCD_CI) ;

or

 SELECT SUB:1 Li IF (0 VCD_CI) ;

For the selecting, you need to use SUB: and for the contexts you need to use /

:)

F.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to