-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapertium-sme-smn.sme-smn.t4x
202 lines (194 loc) · 4.66 KB
/
apertium-sme-smn.sme-smn.t4x
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<?xml version="1.0" encoding="UTF-8"?>
<!-- -*- nxml -*- -->
<!--
t1x local rules, chunking, chunk-internal movement/tagfixing
t2x remove FOC chunk, put foc_tag on word before
t3x coordination
t4x match larger contexts
t5x move foc_tag from wordfoc chunk to the word inside
This file:
Rules:
REGLA: NP">
REGLA: SUBJ"> Dalle ledjen mun ain vuođđoskuvllas. - Talle mun lijjim ain vuáđuškoovlâst.
REGLA: SPRED"> Makkár sátni lea dát? - Maggaar sääni taat lii?
REGLA: OBJ">
REGLA: PR_PO">
-->
<interchunk>
<section-def-cats>
<def-cat n="beforeObj">
<cat-item tags="@SUBJ→"/>
</def-cat>
<def-cat n="GenCompl">
<cat-item tags="NumG.@P←"/>
<cat-item tags="NumG.@P←.*"/>
<cat-item tags="NP.@P←"/>
<cat-item tags="NP.@P←.*"/>
<cat-item tags="NPCOORD.@P←.*"/>
<cat-item tags="NPCOORD.@P←"/>
</def-cat>
<def-cat n="NP">
<cat-item tags="NP"/>
<cat-item tags="NP.*"/>
</def-cat>
<def-cat n="dalle">
<cat-item lemma="dalle" tags="*"/>
</def-cat>
<def-cat n="MV">
<cat-item lemma="mainverb" tags="*"/>
</def-cat>
<def-cat n="SV">
<cat-item tags="SV"/>
<cat-item tags="SV.*"/>
</def-cat>
<def-cat n="adv">
<cat-item lemma="adv" tags="*"/>
</def-cat>
<def-cat n="LSUBJ">
<cat-item lemma="l_subj" tags="*"/>
</def-cat>
<def-cat n="LSPRED">
<cat-item lemma="l_spred" tags="*"/>
</def-cat>
<def-cat n="OBJL">
<cat-item lemma="obj_l" tags="*"/>
</def-cat>
<def-cat n="PR_PO">
<cat-item lemma="pr_post" tags="*"/>
</def-cat>
<def-cat n="IND">
<cat-item lemma="ind" tags="*"/>
</def-cat>
<def-cat n="SENT">
<cat-item tags="SENT"/>
</def-cat>
</section-def-cats>
<section-def-attrs>
<def-attr n="qst">
<attr-item tags="qst"/>
</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_cas">
<attr-item tags="nom"/>
<attr-item tags="acc"/>
<attr-item tags="ill"/>
<attr-item tags="par"/>
<attr-item tags="ess"/>
<attr-item tags="gen"/>
<attr-item tags="loc"/>
<attr-item tags="com"/>
<attr-item tags="abe"/>
</def-attr>
</section-def-attrs>
<section-def-vars>
<def-var n="number"/>
<def-var n="POST"/>
</section-def-vars>
<section-def-macros>
<def-macro n="test1" npar="1">
<let>
<var n="POST"/>
<lit v=""/>
</let>
</def-macro>
</section-def-macros>
<section-rules>
<rule comment="REGLA: NP">
<pattern>
<pattern-item n="NP"/>
</pattern>
<action>
<out>
<chunk>
<clip pos="1" part="lem"/>
<clip pos="1" part="tags"/>
<clip pos="1" part="chcontent"/>
</chunk>
</out>
</action>
</rule>
<rule comment="REGLA: SUBJ"> <!-- Dalle ledjen mun ain vuođđoskuvllas. - Talle mun lijjim ain vuáđuškoovlâst. -->
<pattern>
<pattern-item n="adv"/>
<pattern-item n="SV"/>
<pattern-item n="LSUBJ"/>
</pattern>
<action>
<out>
<chunk>
<clip pos="1" part="whole"/>
</chunk>
<b/>
<chunk>
<clip pos="3" part="whole"/>
</chunk>
<b/>
<chunk>
<clip pos="2" part="whole"/>
</chunk>
</out>
</action>
</rule>
<rule comment="REGLA: SPRED"> <!-- Makkár sátni lea dát? - Maggaar sääni taat lii? -->
<pattern>
<pattern-item n="SV"/>
<pattern-item n="LSPRED"/>
</pattern>
<action>
<out>
<chunk>
<clip pos="2" part="whole"/>
</chunk>
<b/>
<chunk>
<clip pos="1" part="whole"/>
</chunk>
</out>
</action>
</rule>
<rule comment="REGLA: OBJ">
<pattern>
<pattern-item n="beforeObj"/>
<pattern-item n="OBJL"/>
<pattern-item n="SV"/>
</pattern>
<action>
<out>
<chunk>
<clip pos="1" part="whole"/>
</chunk>
<b pos="1"/>
<chunk>
<clip pos="3" part="whole"/>
</chunk>
<b pos="2"/>
<chunk>
<clip pos="2" part="whole"/>
</chunk>
</out>
</action>
</rule>
<rule comment="REGLA: PR_PO">
<pattern>
<pattern-item n="PR_PO"/>
<pattern-item n="GenCompl"/>
</pattern>
<action>
<out>
<chunk>
<clip pos="2" part="whole"/>
</chunk>
<b pos="1"/>
<chunk>
<clip pos="1" part="whole"/>
</chunk>
</out>
</action>
</rule>
</section-rules>
</interchunk>