Missatge de Rajarshi Roychoudhury <rroychoudhu...@gmail.com> del dia dg., 5
d’abr. 2020 a les 17:33:

> Hi,
> I want to write a transfer rule which has the following structure
>
>               IF CONDITION 1
>                  OUTPUT LEXICAL UNIT 1( <lu>)
>               ELSE IF CONDITION 2
>                  OUTPUT LEXICAL UNIT 2(<lu>)
>               ELSE
>                   OUTPUT LEXICAL UNIT 3(<lu>)
> I am able to write the condition part, but where should be the <out> tag
> be placed? Can I have a seperate <out>  for each condition? .I need
> detailed structure of the pipeline of such a transfer rule.
>
>
In fact, you have to have a separate <out> for each condition. Basically,
the structure is:

<choose>
  <when>
    <test> condition </test>
    <out> ... </out>
  </when>

  <when>
    <test> condition </test>
    <out> ... </out>
  </when>

  <otherwise>
    <out> ... </out>
  </otherwise>
</choose>

Hèctor
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to