Thank you very much, Tino! Changing $$ to && seems to solve the problem.
Hèctor

Missatge de Tino Didriksen <tino.didrik...@gmail.com> del dia dg., 21 de
jul. 2019 a les 12:09:

> There's two kinds of unification:
> https://visl.sdu.dk/cg3/chunked/sets.html#set-unification
>
> $$-unification must match the exact same tag. In the first cohort,
> $$Gender resolves to 'm'. Then it looks for 'm' in the second cohort, and
> fails to find.
>
> &&-unification would work. It matches the same set, so the first cohort
> would resolve to NotFem (via 'm') and the second cohort also matches NotFem
> (via 'mf').
>
> Btw, the condition (0 A + $$Gender) is superfluous since that's already
> the target.
>
> -- Tino Didriksen
>
>
> On Sun, 21 Jul 2019 at 05:55, Hèctor Alòs i Font <hectora...@gmail.com>
> wrote:
>
>> I began to work in apertium-por. Its CG file uses unification for
>> matching gender and number. Unfortunately, it is not working. I can't see
>> how to correct the behaviour if I continue to use unification (I'm not
>> familiar with CG's unification). Could someone help? The relevant lines are:
>>
>> LIST Masc = m ;
>> LIST Fem = f ;
>> LIST MascFem = mf ;
>>
>> SET NotMasc = Fem | MascFem ;
>> SET NotFem = Masc | MascFem ;
>> SET Gender = NotMasc | NotFem ;
>>
>> SELECT A + $$Gender IF (0 A + $$Gender) (0 N) (1 N + $$Gender) ;
>>
>> But there is no match for:
>>
>> $ echo "quarto comunista" | apertium -d . por-disam
>> "<quarto>"
>> "quarto" adj m sg
>> "quarto" n m sg
>> "<comunista>"
>> "comunista" adj mf sg
>> "comunista" n mf sg
>>
> _______________________________________________
> Apertium-stuff mailing list
> Apertium-stuff@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to