Difference between revisions of "Talk:Constraint-based lexical selection module"

From Apertium
Jump to navigation Jump to search
(Created page with '==rule formats== ;1 <pre> <rule> <remove lemma="règim" tags="n.*"> <acception lemma="diet" tags="n.*"/> </remove> <or> <skip lemma="nazi" tags="adj.*…')
 
Line 19: Line 19:


;2
;2
<pre>
<rule>
<remove lemma="règim" tags="n.*">
<acception lemma="diet" tags="n.*"/>
</remove>
<or>
<pattern lemma="nazi" tags="adj.*"/>
<pattern lemma="totalitari" tags="adj.*"/>
<pattern lemma="feixista" tags="adj.*"/>
<pattern lemma="franquista" tags="adj.*"/>
<pattern lemma="militar" tags="adj.*"/>
<pattern lemma="fiscal" tags="adj.*"/>
</or>
</rule>
</pre>

Revision as of 10:27, 18 November 2011

rule formats

1
  <rule>
    <remove lemma="règim" tags="n.*">
      <acception lemma="diet" tags="n.*"/>
    </remove>
    <or>
      <skip lemma="nazi" tags="adj.*"/>
      <skip lemma="totalitari" tags="adj.*"/>
      <skip lemma="feixista" tags="adj.*"/>
      <skip lemma="franquista" tags="adj.*"/>
      <skip lemma="militar" tags="adj.*"/>
      <skip lemma="fiscal" tags="adj.*"/>
    </or>
  </rule>
2
  <rule>
    <remove lemma="règim" tags="n.*">
      <acception lemma="diet" tags="n.*"/>
    </remove>
    <or>
      <pattern lemma="nazi" tags="adj.*"/>
      <pattern lemma="totalitari" tags="adj.*"/>
      <pattern lemma="feixista" tags="adj.*"/>
      <pattern lemma="franquista" tags="adj.*"/>
      <pattern lemma="militar" tags="adj.*"/>
      <pattern lemma="fiscal" tags="adj.*"/>
    </or>
  </rule>