-
Notifications
You must be signed in to change notification settings - Fork 3
/
apertium-eng-deu.deu-eng.t3x
134 lines (123 loc) · 2.72 KB
/
apertium-eng-deu.deu-eng.t3x
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
129
130
131
132
133
134
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
<postchunk>
<section-def-cats>
<def-cat n="nom">
<cat-item name="nom"/>
</def-cat>
<def-cat n="det_nom">
<cat-item name="det_nom"/>
</def-cat>
<def-cat n="itg">
<cat-item name="itg"/>
</def-cat>
<def-cat n="prpers">
<cat-item name="prpers"/>
</def-cat>
<def-cat n="verb">
<cat-item name="verb"/>
</def-cat>
<def-cat n="verbs">
<cat-item name="verb"/>
<cat-item name="vaux"/>
<cat-item name="vbdo"/>
<cat-item name="vbhaver"/>
</def-cat>
<def-cat n="adv">
<cat-item name="adv"/>
</def-cat>
<def-cat n="qst">
<cat-item name="qst"/>
</def-cat>
</section-def-cats>
<section-def-attrs>
<def-attr n="a_nom">
<attr-item tags="n"/>
<attr-item tags="np"/>
</def-attr>
<def-attr n="a_verb">
<attr-item tags="vblex"/>
<attr-item tags="vaux"/>
<attr-item tags="vbmod"/>
<attr-item tags="vbser"/>
<attr-item tags="vbhaver"/>
<attr-item tags="vbdo"/>
</def-attr>
<def-attr n="a_nbr">
<attr-item tags="sg"/>
<attr-item tags="pl"/>
<attr-item tags="sp"/>
<attr-item tags="ND"/>
</def-attr>
<def-attr n="a_tense">
<attr-item tags="pri"/>
<attr-item tags="pii"/>
<attr-item tags="prs"/>
<attr-item tags="pis"/>
<attr-item tags="pres"/>
<attr-item tags="past"/>
<attr-item tags="inf"/>
<attr-item tags="imp"/>
<attr-item tags="pprs"/>
<attr-item tags="pp"/>
</def-attr>
</section-def-attrs>
<section-def-vars>
<def-var n="v_tense"/>
</section-def-vars>
<section-rules>
<!-- if verb was moved/inserted use upper/lower case from chunk -->
<rule comment="CHUNK: verb">
<pattern>
<pattern-item n="verbs"/>
</pattern>
<action>
<choose>
<when>
<test>
<equal>
<clip pos="0" part="a_tense"/>
<lit-tag v="inf"/>
</equal>
</test>
<out>
<lu>
<get-case-from pos="0">
<clip pos="1" part="lemh"/>
</get-case-from>
<clip pos="1" part="a_verb"/>
<clip pos="0" part="a_tense"/>
<clip pos="1" part="lemq"/>
</lu>
</out>
</when>
<when>
<test>
<equal>
<case-of pos="0" part="lemh"/>
<lit v="aa"/>
</equal>
</test>
<out>
<lu>
<get-case-from pos="0">
<clip pos="1" part="lemh"/>
</get-case-from>
<clip pos="1" part="tags"/>
<clip pos="1" part="lemq"/>
</lu>
</out>
</when>
<otherwise>
<out>
<lu>
<clip pos="1" part="lemh"/>
<clip pos="1" part="tags"/>
<clip pos="1" part="lemq"/>
</lu>
</out>
</otherwise>
</choose>
</action>
</rule>
</section-rules>
</postchunk>