File: apertium-arg-cat.cat-arg.lrx

package info (click to toggle)
apertium-arg-cat 0.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,000 kB
  • sloc: xml: 479; makefile: 295; python: 84
file content (33 lines) | stat: -rw-r--r-- 716 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<rules>
  <!-- 
    Chooses "ciento" as the translation for "cent" when it is of followed by a <num>. 
  -->

<rule weight="1.0">
    <match lemma="cent">
		<select lemma="ciento"/>
	</match>	
    <match tags="num.*"/>
</rule>
  
<rule weight="1.0">
    <match lemma="cent">
		<select lemma="cient"/>
	</match>	
	<or>
    <match lemma="mil"/>
	<match lemma="millón"/>
	</or>
</rule>

  
</rules>

<!-- 
Resources: 
    https://wiki.apertium.org/wiki/How_to_get_started_with_lexical_selection_rules
    https://wiki.apertium.org/wiki/Constraint-based_lexical_selection
    https://wiki.apertium.org/wiki/Lexical_selection
    https://wiki.apertium.org/wiki/Learning_rules_from_parallel_and_non-parallel_corpora
-->