> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
> Date: Sat, 02 Feb 2013 19:36:41 +0100
> From: Kevin Brubeck Unhammer <[email protected]>
> To: [email protected]
> Reply-To: [email protected]
> Subject: Re: [Apertium-stuff] A more simple example for transfer rules
>
> "Bernard Chardonneau" <[email protected]>
> writes:
>
> > 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.
>
> Transfer rules work on patterns of the def-cat entries, so if you have
> both
>
>     <def-cat n="adj">
>       <cat-item tags="adj.*"/>
>     </def-cat>
>
>     <def-cat n="nom">
>       <cat-item tags="n.*"/>
>       <cat-item tags="np.*"/>
>     </def-cat>
>
> you can have one transfer rule matching a single "nom", one matching
> "adj nom", one matching "adj adj nom", etc. E.g. the last rule starts
> like this:
>
>     <rule>
>       <pattern>
>         <pattern-item n="adj"/>
>         <pattern-item n="adj"/>
>         <pattern-item n="nom"/>
>       </pattern>
>       <action>
>       …
>       </action>
>     </rule>
>
>
> HTH,
> -Kevin
>
>
OK for that. And according to the wiki, as there can be kinds of regular
expressions in <cat-item> there can also be pattern with categories of
words including a special tag (for instance a noun with a <acc> attribute).

So, now, I will just have to learn what to put in <action> section.


> 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
>
--------------------------------
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