The wiki page of Francis about writing transfer rules is interesting
(and it is good to have written it), but the example is not enough
simple for me to know what to write in the different sections.

For instance, in def-cats , you seem to describe separated words when
transfer rules are supposed to work with groups of words.

So, I take another example with 2 words :

Source language :
^la<det><def><sp>$ ^sl_word<n><sg><NOM_ACC>$

Target language (using "empty" .t1x file)
^le<det><def><sp>$ ^tl_word<n><GD><NB><NOM_ACC>$

where
<GD> can be <m> or <f>
<NB> can be <sg> or <pl>
<NOM_ACC> can be <nom> or <acc>

What I would like for the generator :
^le<det><def><GD><NB>$ ^tl_word<n><GD><NB>$

Example :

echo "la parolo" | trapert-gen eo-fr   # one of my shells
^la/la<det><def><sp>$ ^parolo/parolo<n><sg><nom>$   # analysis
^la<det><def><sp>$ ^parolo<n><sg><nom>$             # apertium-tagger
^le<det><def><sp>$ ^parole<n><f><sg><nom>$          # apertium-transfer (with 
empty rules)
#le #parole                                         # generator

echo "^le<det><def><f><sg>$ ^parole<n><f><sg>$" | apert-gen eo-fr  # generator
~la parole

(no problem for the ~)

So, I would like to know what to add in the different sections of t1x file
to make this change.

There will be also the case of the single word :
^sl_word<n><sg><NOM_ACC>$
translated
^tl_word<n><GD><NB><NOM_ACC>$

where we need for generation
^un<det><ind><GD><NB>$ ^tl_word<n><GD><NB>$

What would be written for the pattern ?



--------------------------------
Bernard Chardonneau (France)
Phone : [33] 1 64 90 87 04 or [33] 9 72 36 32 90
(from Sept to June except holidays)
GSM phone : [33] 6 49 95 13 95 (french scholl holidays, C zone)

Multilingual websites for my free softwares :
http://libremail.free.fr and http://libremail.tuxfamily.org
http://cyloop.tuxfamily.org (mainly translated with Apertium)

My general website (in french only)
http://bech.free.fr

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to