-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapertium-sme-smn.sme-smn.t3x
125 lines (116 loc) · 3.22 KB
/
apertium-sme-smn.sme-smn.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
<?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:
Coordination – merge NP CNP NP chunks into one NP chunk.
Rules:
-->
<interchunk>
<section-def-cats>
<def-cat n="NP">
<cat-item tags="NP.*"/>
</def-cat>
<def-cat n="SV">
<cat-item tags="SV.*"/>
</def-cat>
<def-cat n="CNP">
<cat-item tags="cnjcoo.@CNP.*"/>
<cat-item tags="cnjcoo.@CNP"/>
</def-cat>
<def-cat n="CVP">
<cat-item tags="cnjcoo.@CVP.*"/>
<cat-item tags="cnjcoo.@CVP"/>
</def-cat>
</section-def-cats>
<section-def-attrs>
<def-attr n="a_foc">
<attr-item tags="foc_ba"/>
<attr-item tags="foc_bahal"/>
<attr-item tags="foc_bahan"/>
<attr-item tags="foc_bason"/>
<attr-item tags="foc_ban"/>
<attr-item tags="foc_bat"/>
<attr-item tags="foc_be"/>
<attr-item tags="foc_behal"/>
<attr-item tags="foc_behan"/>
<attr-item tags="foc_beson"/>
<attr-item tags="foc_neg-ge"/>
<attr-item tags="foc_pos-ge"/>
<attr-item tags="foc_gen"/>
<attr-item tags="foc_ges"/>
<attr-item tags="foc_gin"/>
<attr-item tags="foc_gis"/>
<attr-item tags="foc_hal"/>
<attr-item tags="foc_han"/>
<attr-item tags="foc_naj"/>
<attr-item tags="foc_nii"/>
<attr-item tags="foc_uv"/>
<attr-item tags="foc_son"/>
<attr-item tags="foc_sun"/>
</def-attr>
<def-attr n="a_chunktype">
<attr-item tags="NP"/>
<attr-item tags="SV"/>
<attr-item tags="AP"/>
<attr-item tags="PP"/>
</def-attr>
</section-def-attrs>
<section-def-vars>
<def-var n="dummy"/>
</section-def-vars>
<section-rules>
<rule comment="REGLA: NP CNP NP">
<pattern>
<pattern-item n="NP"/>
<pattern-item n="CNP"/>
<pattern-item n="NP"/>
</pattern>
<action>
<let><clip pos="3" part="a_chunktype"/>
<lit-tag v="NPCOORD"/></let>
<out>
<chunk>
<clip pos="3" part="lem"/>
<clip pos="3" part="tags"/>
<lit v="{"/>
<clip pos="1" part="content"/>
<b pos="1"/>
<clip pos="2" part="content"/>
<b pos="2"/>
<clip pos="3" part="content"/>
<lit v="}"/>
</chunk>
</out>
</action>
</rule>
<rule comment="REGLA: SV CVP SV">
<pattern>
<pattern-item n="SV"/>
<pattern-item n="CVP"/>
<pattern-item n="SV"/>
</pattern>
<action>
<let><clip pos="3" part="a_chunktype"/><lit-tag v="SVCOORD"/></let>
<out>
<chunk>
<clip pos="3" part="lem"/>
<clip pos="3" part="tags"/>
<lit-tag v="coord"/>
<lit v="{"/>
<clip pos="1" part="content"/>
<b pos="1"/>
<clip pos="2" part="content"/>
<b pos="2"/>
<clip pos="3" part="content"/>
<lit v="}"/>
</chunk>
</out>
</action>
</rule>
</section-rules>
</interchunk>