File: Lexicalization.trx

package info (click to toggle)
apertium-recursive 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,132 kB
  • sloc: cpp: 8,682; python: 178; makefile: 30; sh: 9
file content (128 lines) | stat: -rw-r--r-- 3,674 bytes parent folder | download | duplicates (3)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0" encoding="UTF-8"?>
<transfer>
  <section-def-cats>
    <def-cat n="adj">
      <cat-item tags="adj"/>
      <cat-item tags="adj.*"/>
    </def-cat>
    <def-cat n="n">
      <cat-item tags="n"/>
      <cat-item tags="n.*"/>
    </def-cat>
    <def-cat n="de">
      <cat-item lemma="de" tags="pr"/>
    </def-cat>
  </section-def-cats>
  <section-def-attrs>
    <def-attr n="gender">
      <attr-item tags="m"/>
      <attr-item tags="f"/>
      <attr-item tags="mf"/>
    </def-attr>
    <def-attr n="number">
      <attr-item tags="sg"/>
      <attr-item tags="pl"/>
      <attr-item tags="sp"/>
    </def-attr>
  </section-def-attrs>
  <section-rules>
    <rule id="gen" weight="0" firstChunk="NP">
      <pattern>
        <pattern-item n="n"/>
        <pattern-item n="de"/>
        <pattern-item n="n"/>
      </pattern>
      <action>
        <out>
          <chunk>
            <source><clip pos="1" part="whole" side="sl"/></source>
            <contents>
              <mlu>
                <lu>
                  <clip pos="3" part="lemh" side="tl"/>
                  <lit-tag v="n"/>
                  <clip pos="3" part="number" side="tl"/>
                  <clip pos="3" part="lemq" side="tl"/>
                </lu>
                <lu>
                  <lit v="'s"/>
                  <lit-tag v="gen"/>
                </lu>
              </mlu>
              <b/>
              <lu>
                <clip pos="1" part="lemh" side="tl"/>
                <lit-tag v="n"/>
                <clip pos="1" part="number" side="tl"/>
                <clip pos="1" part="lemq" side="tl"/>
              </lu>
            </contents>
          </chunk>
        </out>
      </action>
    </rule>
    <rule id="of" weight="0" firstChunk="NP">
      <pattern>
        <pattern-item n="n"/>
        <pattern-item n="de"/>
        <pattern-item n="n"/>
      </pattern>
      <action>
        <out>
          <chunk>
            <source><clip pos="1" part="whole" side="sl"/></source>
            <contents>
              <lu>
                <clip pos="1" part="lemh" side="tl"/>
                <lit-tag v="n"/>
                <clip pos="1" part="number" side="tl"/>
                <clip pos="1" part="lemq" side="tl"/>
              </lu>
              <b/>
              <lu>
                <clip pos="2" part="lemh" side="tl"/>
                <lit-tag v="pr"/>
              </lu>
              <b/>
              <lu>
                <clip pos="3" part="lemh" side="tl"/>
                <lit-tag v="n"/>
                <clip pos="3" part="number" side="tl"/>
                <clip pos="3" part="lemq" side="tl"/>
              </lu>
            </contents>
          </chunk>
        </out>
      </action>
    </rule>
    <rule id="n-n" weight="0" firstChunk="NP">
      <pattern>
        <pattern-item n="n"/>
        <pattern-item n="de"/>
        <pattern-item n="n"/>
      </pattern>
      <action>
        <out>
          <chunk>
            <source><clip pos="1" part="whole" side="sl"/></source>
            <contents>
              <lu>
                <clip pos="3" part="lemh" side="tl"/>
                <lit-tag v="n"/>
                <clip pos="3" part="number" side="tl"/>
                <clip pos="3" part="lemq" side="tl"/>
              </lu>
              <b/>
              <lu>
                <clip pos="1" part="lemh" side="tl"/>
                <lit-tag v="n"/>
                <clip pos="1" part="number" side="tl"/>
                <clip pos="1" part="lemq" side="tl"/>
              </lu>
            </contents>
          </chunk>
        </out>
      </action>
    </rule>
  </section-rules>
</transfer>