"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


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