I have the following paradigm definition in a bidix

<pardef n="sup_0_mf">
  <e><p><l></l><r></r></p></e>
  <e r="LR"><p><l><s n="sup"/><s n="m"/><s n="sg"/></l><r><s n="mf"/><s
n="sg"/></r></p></e>
  <e r="LR"><p><l><s n="sup"/><s n="f"/><s n="sg"/></l><r><s n="mf"/><s
n="sg"/></r></p></e>
  <e r="LR"><p><l><s n="sup"/><s n="m"/><s n="pl"/></l><r><s n="mf"/><s
n="pl"/></r></p></e>
  <e r="LR"><p><l><s n="sup"/><s n="f"/><s n="pl"/></l><r><s n="mf"/><s
n="pl"/></r></p></e>
</pardef>

and the following translation

<e r="RL"><p><l>elegant<s n="adj"/></l>                <r>elegante<s
n="adj"/></r></p><par n="sup_0_mf"/></e>

The compilations works fine and there is no problem translating from left
to right. But when translating anything from right to left I get:

Error: Invalid dictionary (hint: the left side of an entry is empty)

The problem is in the first line of the pardef. If I change it, putting
anything, it works: for instance, when doing:

<pardef n="sup_0_mf">
  <e><p><l><s n="mf"/></l><r><s n="mf"/></r></p></e>
  <e r="LR"><p><l><s n="sup"/><s n="m"/><s n="sg"/></l><r><s n="mf"/><s
n="sg"/></r></p></e>
  <e r="LR"><p><l><s n="sup"/><s n="f"/><s n="sg"/></l><r><s n="mf"/><s
n="sg"/></r></p></e>
  <e r="LR"><p><l><s n="sup"/><s n="m"/><s n="pl"/></l><r><s n="mf"/><s
n="pl"/></r></p></e>
  <e r="LR"><p><l><s n="sup"/><s n="f"/><s n="pl"/></l><r><s n="mf"/><s
n="pl"/></r></p></e>
</pardef>

There are several forms to avoid this kind of "empty" lines in the pardefs,
but, in any case, I think there is a bug and it'd be fine to have it
corrected.

Best,
Hèctor
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to