-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapertium-sme-smn.sme-smn.t5x
71 lines (64 loc) · 1.74 KB
/
apertium-sme-smn.sme-smn.t5x
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
<?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:
wordfoc: Apply focus particle as tag
-->
<postchunk>
<section-def-cats>
<def-cat n="wordfoc">
<cat-item name="wordfoc"/>
</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>
</section-def-attrs>
<section-def-vars>
<def-var n="tmp"/>
</section-def-vars>
<section-rules>
<rule comment="CHUNK: wordfoc">
<pattern>
<pattern-item n="wordfoc"/>
</pattern>
<action>
<out>
<lu>
<clip pos="1" part="whole"/>
<clip pos="0" part="a_foc"/>
</lu>
</out>
</action>
</rule>
</section-rules>
</postchunk>