demo_tei.xml
3.62 KB
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
<?xml version="1.0" encoding="UTF-8" ?>
<mtas>
<!-- START MTAS INDEX CONFIGURATION -->
<index>
<!-- START GENERAL SETTINGS MTAS INDEX PROCESS -->
<payload index="true" />
<offset index="true" />
<realoffset index="true" />
<parent index="true" />
<!-- END GENERAL SETTINGS MTAS INDEX PROCESS -->
</index>
<!-- END MTAS INDEX CONFIGURATION -->
<!-- START CONFIGURATION MTAS TEI PARSER -->
<parser name="mtas.analysis.parser.MtasTEIParser">
<!-- START GENERAL SETTINGS MTAS TEI PARSER -->
<autorepair value="true" />
<makeunique value="true" />
<!-- END GENERAL SETTINGS MTAS TEI PARSER -->
<!-- START REFERENCES -->
<references>
</references>
<!-- END REFERENCES -->
<!-- START MAPPINGS -->
<mappings>
<!-- START WORDS -->
<mapping type="word" name="w">
<token type="string" offset="false" realoffset="false" parent="true">
<pre>
<item type="string" value="t" />
</pre>
<post>
<item type="text" />
</post>
</token>
<token type="string" offset="false" realoffset="false" parent="false">
<pre>
<item type="string" value="t_lc" />
</pre>
<post>
<item type="text" filter="ascii,lowercase" />
</post>
</token>
</mapping>
<mapping type="word" name="w">
<token type="string" offset="false" realoffset="false" parent="false">
<pre>
<item type="string" value="lemma" />
</pre>
<post>
<item type="attribute" name="lemma" />
</post>
</token>
<condition>
<item type="attribute" name="lemma" />
</condition>
</mapping>
<mapping type="word" name="w">
<token type="string" offset="false" realoffset="false" parent="false">
<pre>
<item type="string" value="type" />
</pre>
<post>
<item type="attribute" name="type" />
</post>
</token>
<condition>
<item type="attribute" name="type" />
</condition>
</mapping>
<mapping type="word" name="pc">
<token type="string" offset="false" realoffset="false" parent="false">
<pre>
<item type="string" value="t" />
</pre>
<post>
<item type="text" />
</post>
</token>
<token type="string" offset="false" realoffset="false" parent="false">
<pre>
<item type="string" value="t_lc" />
</pre>
<post>
<item type="text" filter="ascii,lowercase" />
</post>
</token>
</mapping>
<!-- END WORDS -->
<!-- START WORD ANNOTATIONS -->
<!-- END WORD ANNOTATIONS -->
<!-- START RELATIONS -->
<!-- END RELATIONS -->
<!-- START GROUPS -->
<mapping type="group" name="p">
<token type="string" offset="false">
<pre>
<item type="name" />
</pre>
<post>
<item type="attribute" name="type" />
</post>
</token>
</mapping>
<mapping type="group" name="div">
<token type="string" offset="false">
<pre>
<item type="name" />
</pre>
<post>
<item type="attribute" name="type" />
</post>
</token>
</mapping>
<mapping type="group" name="rs">
<token type="string" offset="false">
<pre>
<item type="name" />
</pre>
<post>
<item type="attribute" name="type" />
</post>
</token>
</mapping>
<!-- END GROUPS -->
<!-- START GROUP ANNOTATIONS -->
<!-- END GROUP ANNOTATIONS -->
</mappings>
<!-- END MAPPINGS -->
</parser>
<!-- END CONFIGURATION MTAS TEI PARSER -->
</mtas>