-
Notifications
You must be signed in to change notification settings - Fork 0
/
apertium-fin-udm.udm-fin.t1x
120 lines (113 loc) · 2.86 KB
/
apertium-fin-udm.udm-fin.t1x
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- -*- nxml -*- -->
<transfer default="chunk">
<section-def-cats>
<def-cat n="nom">
<cat-item tags="n.*"/>
</def-cat>
<def-cat n="sent">
<cat-item tags="sent"/>
</def-cat>
<def-cat n="mesto_alla">
<cat-item tags="prn.alla"/>
</def-cat>
<def-cat n="glag_olla">
<cat-item lemma="olla" tags="v.*"/>
</def-cat>
<def-cat n="sush_part">
<cat-item tags="n.*.part"/>
</def-cat>
</section-def-cats>
<section-def-attrs>
<def-attr n="a_nom">
<attr-item tags="n"/>
</def-attr>
<def-attr n="a_cas">
<attr-item tags="nom"/>
<attr-item tags="acc"/>
<attr-item tags="dat"/>
<attr-item tags="gen"/>
<attr-item tags="loc"/>
<attr-item tags="ins"/>
<attr-item tags="abl"/>
<attr-item tags="par"/>
<attr-item tags="alla"/>
</def-attr>
</section-def-attrs>
<section-def-vars>
<def-var n="number"/>
<def-var n="current_verb"/>
</section-def-vars>
<section-def-macros>
<def-macro n="test" npar="1">
<let>
<var n="number"/>
<lit v=""/>
</let>
</def-macro>
</section-def-macros>
<section-rules>
<rule comment="REGLA: SENT">
<pattern>
<pattern-item n="mesto_alla"/>
<pattern-item n="glag_olla"/>
<pattern-item n="sush_part"/>
</pattern>
<action>
<let>
<clip pos="1" side="tl" part="a_cas"/>
<lit-tag v="gen"/>
</let>
<let>
<clip pos="3" side="tl" part="a_cas"/>
<lit-tag v="acc"/>
</let>
<out>
<chunk name="sent" case="caseFirstWord">
<tags>
<tag><lit-tag v="SENT"/></tag>
</tags>
<lu>
<clip pos="1" side="tl" part="whole"/>
</lu>
</chunk>
<b pos="1"/>
<chunk name="sent" case="caseFirstWord">
<tags>
<tag><lit-tag v="SENT"/></tag>
</tags>
<lu>
<clip pos="2" side="tl" part="whole"/>
</lu>
</chunk>
<b pos="2"/>
<chunk name="sent" case="caseFirstWord">
<tags>
<tag><lit-tag v="SENT"/></tag>
</tags>
<lu>
<clip pos="3" side="tl" part="whole"/>
</lu>
</chunk>
</out>
</action>
</rule>
<rule comment="REGLA: SENT">
<pattern>
<pattern-item n="sent"/>
</pattern>
<action>
<out>
<chunk name="sent" case="caseFirstWord">
<tags>
<tag><lit-tag v="SENT"/></tag>
</tags>
<lu>
<clip pos="1" side="tl" part="whole"/>
</lu>
</chunk>
</out>
</action>
</rule>
</section-rules>
</transfer>