File: SetEmptyClip.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 (70 lines) | stat: -rw-r--r-- 1,962 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
<?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="n_sg">
      <cat-item tags="n.sg"/>
      <cat-item tags="n.sg.*"/>
    </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>
    <def-attr n="tense">
      <attr-item tags="past"/>
      <attr-item tags="pres"/>
      <attr-item tags="fut"/>
    </def-attr>
  </section-def-attrs>
  <section-rules>
    <rule weight="0" firstChunk="NP">
      <pattern>
        <pattern-item n="adj"/>
        <pattern-item n="n"/>
      </pattern>
      <action>
        <let>
          <clip pos="1" part="gender" side="tl"/>
          <clip pos="2" part="tense" side="sl"/>
        </let>
        <out>
          <chunk>
            <source><clip pos="2" part="whole" side="sl"/></source>
            <contents>
              <lu>
                <clip pos="2" part="lemh" side="tl"/>
                <lit-tag v="n"/>
                <clip pos="2" part="gender" side="tl"/>
                <clip pos="2" part="number" side="sl"/>
                <clip pos="2" part="lemq" side="tl"/>
              </lu>
              <b pos="1"/>
              <lu>
                <clip pos="1" part="lemh" side="tl"/>
                <lit-tag v="adj"/>
                <clip pos="1" part="gender" side="tl"/>
                <clip pos="2" part="number" side="sl"/>
                <clip pos="1" part="lemq" side="tl"/>
              </lu>
            </contents>
          </chunk>
        </out>
      </action>
    </rule>
  </section-rules>
</transfer>