Sounds about right!

F.

El dj 10 de 04 de 2014 a les 22:53 -0700, en/na Rafi Kamal va escriure:
> Hi Mikel
> 
> Thanks for the reply. So I have to build a string conditionally
> outside the tag and save it to a variable, and then output that
> variable in the tag, right? 
> 
> 
> 
> 
> ______________________________________________________________________
> From: Mikel Forcada <[email protected]>; 
> To: Rafi Kamal <[email protected]>;
> <[email protected]>; 
> Subject: Re: [Apertium-stuff] [GSoC] Adopt an unreleased language pair
> (Bangla-English) 
> Sent: Fri, Apr 11, 2014 5:18:31 AM 
> 
> 
> Unfortunately not, AFAIK. You can build strings conditionally outside
> the <out> or <lu> and then output them, The argument of <out> is a
> string... <choose> applies to sequences of statements.
> 
> Mikel
> 
> Al 04/11/2014 07:03 AM, En/na Rafi Kamal ha escrit:
> 
> > Hi, is it possible to use <choose> inside an <out> or <lu>? I was
> > trying to output some attributes of a lexical unit only when the
> > person attribute is p1 or p3. I was trying this:
> > 
> > 
> >       <action>
> >         <out>
> >           <chunk name="verb_cnt" case="caseFirstWord">
> >             <tags>..............</tags>
> >             
> >             <lu>
> >               ..............
> >               <choose>
> >                 <when>
> >                   <test>
> >                     <or>
> >                       <equal>..............</equal> <!-- test if
> > person=p1 -->
> >                       <equal>..............</equal> <!-- test if
> > person=p3 -->
> >                     </or>
> >                   </test>
> >                   <!-- Optional attributes -->
> > 
> >                   <out>
> >                     ...................
> >                   </out>
> >                 </when>
> >               </choose>
> >             </lu>
> >           </chunk>
> >         </out>
> >       </action>
> > 
> > 
> > Full code is here: http://pastebin.com/GnjnxX1E
> > 
> > 
> > But I am getting validation error, it seems that <choose> cannot be
> > used within <out> or <lu>. What will be the best way to achieve
> > this?
> > 
> > 
> > Thanks
> > 
> > 
> > ------------------------------------------------------------------------------
> > Put Bad Developers to Shame
> > Dominate Development with Jenkins Continuous Integration
> > Continuously Automate Build, Test & Deployment 
> > Start a new project now. Try Jenkins in the cloud.
> > http://p.sf.net/sfu/13600_Cloudbees
> > 
> > 
> > _______________________________________________
> > 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
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment 
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> _______________________________________________
> Apertium-stuff mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff



------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to