Thanks Francis, I've tried the lt-expand command that you gave me, in my case it works for apertium-fr-es.es.dix but returns the following error for apertium-fr-es.fr.metadix
Error (6292): Invalid specification of element '<prm>' in this context. I'm trying to make sure that all the lemmas in the monodices are right by generating them automatically and try to detect misspelled entries in the bidixes. In order to do this, I would need a command that outputs the lemma from a given <e></e> expression. For example: command '<e><i>actual</i><par n="abdominal__adj"/></e>' Output: actual<adj><mf> Here are some entries of the apertium-fr-es.fr.metadix where the lm attributes are missing, our linguist is adding them and will post it soon: <e><p><l>à<b/>quoi</l><r>à<b/>quoi<s n="prn"/><s n="itg"/><s n="mf"/><s n="sp"/></r></p></e> <e><p><l>qu'est-ce<b/>que</l><r>qu'est-ce<b/>que<s n="prn"/><s n="itg"/><s n="mf"/><s n="sp"/></r></p></e> <e r="LR"><p><l>est-ce<b/>que</l><r>est-ce<b/>que<s n="prn"/><s n="itg"/><s n="mf"/><s n="sp"/></r></p></e> <e r="LR"><p><l>que</l><r>que<s n="prn"/><s n="itg"/><s n="mf"/><s n="sp"/></r></p></e> <e r="LR"><p><l>qu'est-ce<b/>que<b/>c'est<b/>que</l><r>qu'est-ce<b/>que<s n="prn"/><s n="itg"/><s n="mf"/><s n="sp"/><j/>être<s n="vbser"/><s n="pri"/><s n="p3"/><s n="sg"/></r></p></e> <e r="LR"><p><l>quoi</l><r>quoi<s n="prn"/><s n="itg"/><s n="mf"/><s n="sp"/></r></p></e> <e r="RL"><i>bien<b/>entendu</i><par n="hier__adv"/></e> <e r="RL"><i>de<b/>mon<b/>temps</i><par n="hier__adv"/></e> <e r="RL"><i>d'un<b/>bout<b/>à<b/>l'autre</i><par n="hier__adv"/></e> <e r="RL"><i>en<b/>son<b/>temps</i><par n="hier__adv"/></e> <e r="RL"><i>encore<b/>plus</i><par n="hier__adv"/></e> <e r="RL"><i>et<b/>de<b/>loin</i><par n="hier__adv"/></e> <e r="RL"><i>loin<b/>de<b/>là</i><par n="hier__adv"/></e> -- Gabriel Paderni www.phone-m.com +33 9 84 34 20 20 On 05.08.2016 18:59, Francis Tyers wrote: > From the monolingual dictionary, you'll need to do something like: > > $ lt-expand ../apertium-eng_feil/apertium-eng.eng.dix | grep '<inf>' | > sed 's/:[><]:/:/g' | grep -v '\+' | cut -f2 -d':' | sed 's/.*/^&$/g' | > apertium-pretransfer > ^be<vbser><inf>$ > ^be<vbser><inf>$ > ^accept<vblex><inf>$ > ^travel<vblex><inf>$ > ^go# across<vblex><inf>$ > ^go# out<vblex><inf>$ > > I can give you more explicit commands if you say what you'd like to do > :) > > F. > > > A 2016-08-05 17:40, [email protected] escrigué: >> Thanks Francis, >> is there a command to output "take# away<vblex>"? >> >> On 04.08.2016 20:51, Francis Tyers wrote: >>> A 2016-08-04 18:14, [email protected] escrigué: >>>> Hi, >>>> I'm new to Apertium platform, could you please confirm to me that >>>> it's >>>> the lemma that needs to be specified in the bilingual dictionaries? >>>> I've noticed that multiwords also contain <b/> and <g> tags which >>>> make >>>> them different from the lemma (lm attribute value) in the >>>> monolingual >>>> dictionary, is this the only difference? >>>> Regards >>> >>> Yes, the lm="" attribute is only a commend. The real lemma is built >>> from >>> the combination >>> of the <i> (or <r>) sides. >>> >>> So: >>> >>> <pardef n="t/ake__vblex"> >>> <e><p><l>ake</l><r>ake<s n="vblex"/><s n="inf"/></r></p></e> >>> <e><p><l>ook</l><r>ake<s n="vblex"/><s n="past"/></r></p></e> >>> ... >>> </pardef> >>> ... >>> >>> <e lm="take away"><i>t</i><par >>> n="t/ake__vblex"/><p><l><b/>away</l><r><g><b/>away</g></r></p></e> >>> >>> The lemma that needs to be specified in the bidix is: >>> >>> take# away<vblex> >>> >>> Fran >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Apertium-stuff mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/apertium-stuff > > ------------------------------------------------------------------------------ > _______________________________________________ > Apertium-stuff mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/apertium-stuff ------------------------------------------------------------------------------ _______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
