Thanks a million Mireia,

it works differently. I don't get <zzz>, as I am assigning a regular value, but not a "tag" (actually, it's funny I don't get a thing). If I assign it <lit-tag v="pl"/> instead, it works as expected. Does assignment check for valid values? And then, why does it do so silently?

If the problem is with assigning to the source side, it is the first time we encounter it, as we use it massively, particularly in a "monolingual" t4x we use (which is basically a t1x to do some cleanup after t4x). If assigning to the source side is illegal, the interpreter should complain.

In the documentation, "sl" clips are never given values, granted...

Let's see what Sergio's got to say. After all, he is the father of the baby.

Thanks a lot!

Mikel




El 22/11/13 15:38, Mireia Ginestí Rosell ha escrit:
Hello,

After a first look at the rule, without installing apertium-eng-kaz, I´ve seen that the side in the clip is "sl", when I think it should be "tl" (target language).

If you change:
<let><clip pos="1" side="sl" part="a_nbr"/><lit-tag v="ND"/></let>

with

<let><clip pos="1" side="tl" part="a_nbr"/><lit-tag v="ND"/></let>


and the same here:
<let><clip pos="1" side="sl" part="a_nbr"/><lit v="zzz"/>
and in the <out> command,
does it work?


Regards,

Mireia




On Fri, Nov 22, 2013 at 3:22 PM, Mikel L. Forcada <[email protected] <mailto:[email protected]>> wrote:

    Dear Sergio, dear list,

    Aida and I think we have found a bug in the t1x processor and we
    have chased it down to a single file containing only the
    definitions necessary and a single rule. Unfortunately, it has to
    be tested by installing apertium-eng-kaz (following the steps
    here: http://wiki.apertium.org/wiki/English_and_Kazakh (hfst and
    all!, sorry).

    How to test the (possible) bug: install apertium-eng-kaz, then
    replace apertium-eng-kaz.kaz-eng.t1x with the file with the same
    name in the dev/ directory, compile, and run this test:

    echo "?????????" | apertium -d. kaz-eng-transfer

    The output should be:

    apertium-transfer: Rule 1 ???<v><tv><past><p1><sg>/
    write<vblex><past><p1><sg>/record<vblex><past><p1><sg>
    ^+++ HELLO, I AM THE WRONG RULE! +++ The following should be <ND>
    or <zzz>:<sg>$^default<default>{^.<sent>$}

    If you look at the rule, first the value <ND> to the number clip
    is assigned and then there is a <choose> block that tests for 1st
    person and assigns <zzz> to the number clip. None of these two
    values are printed; instead, the value extracted from
    ???<v><tv><past><p1><sg> is printed, namely <sg>.

    We also saw some other strange behavior, but this was the easiest
    to reproduce.

    Basically, assignments to clips are overriden and the values
    obtained in previous assignments seem to prevail.

    We would appreciate it very much if someone could look into this bug.

    All the best

    Mikel

    P.S. Another behaviour we observed is that under some
    circumstances you cannot assign values to clips outside their
    definition range, but we haven't been able to isolate the problem.

-- Mikel L. Forcada E-mail: [email protected] <mailto:[email protected]>
    Departament de Llenguatges Phone: +34-96-590-9776
    <tel:%2B34-96-590-9776>
    i Sistemes Informàtics also +34-96-590-3772 <tel:%2B34-96-590-3772>.
    UNIVERSITAT D'ALACANT Fax: +34-96-590-9326
    <tel:%2B34-96-590-9326>, -3464
    E-03071 ALACANT, Spain.

    URL: http://www.dlsi.ua.es/~mlf <http://www.dlsi.ua.es/%7Emlf>

    
------------------------------------------------------------------------------
    Shape the Mobile Experience: Free Subscription
    Software experts and developers: Be at the forefront of tech
    innovation.
    Intel(R) Software Adrenaline delivers strategic insight and
    game-changing
    conversations that shape the rapidly evolving mobile landscape.
    Sign up now.
    http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
    _______________________________________________
    Apertium-stuff mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/apertium-stuff




------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk


_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff


--
 Mikel L. Forcada (http://www.dlsi.ua.es/~mlf/)
Departament de Llenguatges i Sistemes Informàtics
Universitat d'Alacant
E-03071 Alacant, Spain
Phone: +34 96 590 9776
Fax: +34 96 590 9326

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to