-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapertium-sme-smn.sme-smn.t2x
88 lines (80 loc) · 2.26 KB
/
apertium-sme-smn.sme-smn.t2x
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
<?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:
Turns the focus particle chunk into a tag on the preceding word. Focus
particles can come after pretty much anything, therefore one file
which just handles this.
Rules:
REGLA: WORD FOC">
-->
<interchunk>
<section-def-cats>
<def-cat n="WORD">
<cat-item tags="*"/>
</def-cat>
<def-cat n="FOC">
<cat-item tags="FOC.*"/>
</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="number"/>
<def-var n="POST"/>
</section-def-vars>
<section-rules>
<rule comment="REGLA: WORD FOC">
<pattern>
<pattern-item n="WORD"/>
<pattern-item n="FOC"/>
</pattern>
<action>
<let>
<clip pos="1" part="tags"/>
<concat>
<clip pos="1" part="tags"/>
<clip pos="2" part="a_foc"/>
</concat>
</let>
<out>
<chunk>
<get-case-from pos="1"><lit v="wordfoc"/></get-case-from>
<clip pos="1" part="tags"/>
<clip pos="1" part="chcontent"/>
</chunk>
</out>
</action>
</rule>
</section-rules>
</interchunk>