Commit a38f56487deff0a9110c3ae27a96a1cb0487895e
1 parent
bb2466a4
config docker
Showing
2 changed files
with
426 additions
and
0 deletions
docker/mtas.xml
... | ... | @@ -4,11 +4,13 @@ |
4 | 4 | <configuration name="folia" file="mtas/demo_folia.xml" /> |
5 | 5 | <configuration name="tei" file="mtas/demo_tei.xml" /> |
6 | 6 | <configuration name="iso-tei" file="mtas/demo_iso-tei.xml" /> |
7 | + <configuration name="chat" file="mtas/demo_chat.xml" /> | |
7 | 8 | </configurations> |
8 | 9 | <configurations type="mtas.analysis.util.MtasCharFilterFactory"> |
9 | 10 | <configuration name="folia" type="url" prefix="http://localhost/demo/" postfix="" /> |
10 | 11 | <configuration name="tei" type="url" prefix="http://localhost/demo/" postfix="" /> |
11 | 12 | <configuration name="iso-tei" type="url" prefix="http://localhost/demo/" postfix="" /> |
13 | + <configuration name="chat" type="url" prefix="http://localhost/demo/" postfix="" /> | |
12 | 14 | </configurations> |
13 | 15 | </mtas> |
14 | 16 | |
... | ... |
docker/mtas/demo_chat.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8" ?> | |
2 | +<mtas> | |
3 | + | |
4 | + <!-- START MTAS INDEX CONFIGURATION --> | |
5 | + <index> | |
6 | + <!-- START GENERAL SETTINGS MTAS INDEX PROCESS --> | |
7 | + <payload index="true" /> | |
8 | + <offset index="true" /> | |
9 | + <realoffset index="true" /> | |
10 | + <parent index="true" /> | |
11 | + <!-- END GENERAL SETTINGS MTAS INDEX PROCESS --> | |
12 | + </index> | |
13 | + <!-- END MTAS INDEX CONFIGURATION --> | |
14 | + | |
15 | + | |
16 | + | |
17 | + <!-- START CONFIGURATION MTAS CHAT PARSER --> | |
18 | + <parser name="mtas.analysis.parser.MtasChatParser"> | |
19 | + | |
20 | + <!-- START GENERAL SETTINGS MTAS CHAT PARSER --> | |
21 | + <autorepair value="true" /> | |
22 | + <makeunique value="true" /> | |
23 | + <!-- END GENERAL SETTINGS MTAS CHAT PARSER --> | |
24 | + | |
25 | + <!-- START VARIABLES --> | |
26 | + <variables> | |
27 | + <variable name="participant" value="participant.role"> | |
28 | + <value> | |
29 | + <item type="attribute" name="role" /> | |
30 | + </value> | |
31 | + </variable> | |
32 | + <variable name="participant" value="participant.name"> | |
33 | + <value> | |
34 | + <item type="attribute" name="name" /> | |
35 | + </value> | |
36 | + </variable> | |
37 | + <variable name="participant" value="participant.age"> | |
38 | + <value> | |
39 | + <item type="attribute" name="age" /> | |
40 | + </value> | |
41 | + </variable> | |
42 | + <variable name="participant" value="participant.group"> | |
43 | + <value> | |
44 | + <item type="attribute" name="group" /> | |
45 | + </value> | |
46 | + </variable> | |
47 | + <variable name="participant" value="participant.sex"> | |
48 | + <value> | |
49 | + <item type="attribute" name="sex" /> | |
50 | + </value> | |
51 | + </variable> | |
52 | + <variable name="participant" value="participant.SES"> | |
53 | + <value> | |
54 | + <item type="attribute" name="SES" /> | |
55 | + </value> | |
56 | + </variable> | |
57 | + <variable name="participant" value="participant.education"> | |
58 | + <value> | |
59 | + <item type="attribute" name="education" /> | |
60 | + </value> | |
61 | + </variable> | |
62 | + <variable name="participant" value="participant.custom-field"> | |
63 | + <value> | |
64 | + <item type="attribute" name="custom-field" /> | |
65 | + </value> | |
66 | + </variable> | |
67 | + <variable name="participant" value="participant.birthday"> | |
68 | + <value> | |
69 | + <item type="attribute" name="birthday" /> | |
70 | + </value> | |
71 | + </variable> | |
72 | + <variable name="participant" value="participant.language"> | |
73 | + <value> | |
74 | + <item type="attribute" name="language" /> | |
75 | + </value> | |
76 | + </variable> | |
77 | + <variable name="participant" value="participant.first-language"> | |
78 | + <value> | |
79 | + <item type="attribute" name="first-language" /> | |
80 | + </value> | |
81 | + </variable> | |
82 | + <variable name="participant" value="participant.birthplace"> | |
83 | + <value> | |
84 | + <item type="attribute" name="birthplace" /> | |
85 | + </value> | |
86 | + </variable> | |
87 | + </variables> | |
88 | + <!-- END VARIABLES --> | |
89 | + | |
90 | + <!-- START REFERENCES --> | |
91 | + <!-- END REFERENCES --> | |
92 | + | |
93 | + <!-- START MAPPINGS --> | |
94 | + <mappings> | |
95 | + | |
96 | + <!-- START WORDS --> | |
97 | + <mapping type="word" name="w"> | |
98 | + <token type="string" offset="false"> | |
99 | + <pre> | |
100 | + <item type="name" /> | |
101 | + </pre> | |
102 | + <post> | |
103 | + <item type="text" /> | |
104 | + </post> | |
105 | + </token> | |
106 | + </mapping> | |
107 | + <mapping type="word" name="t"> | |
108 | + <token type="string" offset="false"> | |
109 | + <pre> | |
110 | + <item type="name" /> | |
111 | + <item type="attribute" name="type" prefix="." /> | |
112 | + </pre> | |
113 | + </token> | |
114 | + </mapping> | |
115 | + <mapping type="word" name="a"> | |
116 | + <token type="string" offset="false"> | |
117 | + <pre> | |
118 | + <item type="name" /> | |
119 | + <item type="attribute" name="type" prefix="." /> | |
120 | + </pre> | |
121 | + <post> | |
122 | + <item type="text" /> | |
123 | + </post> | |
124 | + </token> | |
125 | + </mapping> | |
126 | + <mapping type="word" name="e"> | |
127 | + <token type="string" offset="false"> | |
128 | + <pre> | |
129 | + <item type="name" /> | |
130 | + </pre> | |
131 | + <post> | |
132 | + <item type="text" /> | |
133 | + </post> | |
134 | + </token> | |
135 | + </mapping> | |
136 | + <mapping type="word" name="lazy-gem"> | |
137 | + <token type="string" offset="false"> | |
138 | + <pre> | |
139 | + <item type="name" /> | |
140 | + </pre> | |
141 | + <post> | |
142 | + <item type="attribute" name="label" /> | |
143 | + </post> | |
144 | + </token> | |
145 | + </mapping> | |
146 | + <!-- END WORDS --> | |
147 | + | |
148 | + <!-- START WORD ANNOTATIONS --> | |
149 | + <mapping type="wordAnnotation" name="pos"> | |
150 | + </mapping> | |
151 | + <mapping type="wordAnnotation" name="c"> | |
152 | + <token type="string" offset="false"> | |
153 | + <pre> | |
154 | + <item type="ancestorName" /> | |
155 | + <item type="name" prefix="." /> | |
156 | + </pre> | |
157 | + <post> | |
158 | + <item type="text" /> | |
159 | + </post> | |
160 | + </token> | |
161 | + <condition> | |
162 | + <item type="ancestorName" condition="pos" /> | |
163 | + <item type="ancestorWordName" condition="w" /> | |
164 | + </condition> | |
165 | + </mapping> | |
166 | + <mapping type="wordAnnotation" name="s"> | |
167 | + <token type="string" offset="false"> | |
168 | + <pre> | |
169 | + <item type="ancestorName" /> | |
170 | + <item type="name" prefix="." /> | |
171 | + </pre> | |
172 | + <post> | |
173 | + <item type="text" /> | |
174 | + </post> | |
175 | + </token> | |
176 | + <condition> | |
177 | + <item type="ancestorName" condition="pos" /> | |
178 | + <item type="ancestorWordName" condition="w" /> | |
179 | + </condition> | |
180 | + </mapping> | |
181 | + <mapping type="wordAnnotation" name="stem"> | |
182 | + <token type="string" offset="false"> | |
183 | + <pre> | |
184 | + <item type="name" /> | |
185 | + </pre> | |
186 | + <post> | |
187 | + <item type="text" /> | |
188 | + </post> | |
189 | + </token> | |
190 | + <condition> | |
191 | + <item type="ancestorWordName" condition="w" /> | |
192 | + </condition> | |
193 | + </mapping> | |
194 | + <mapping type="wordAnnotation" name="mk"> | |
195 | + <token type="string" offset="false"> | |
196 | + <pre> | |
197 | + <item type="name" /> | |
198 | + <item type="attribute" name="type" prefix="." /> | |
199 | + </pre> | |
200 | + <post> | |
201 | + <item type="text" /> | |
202 | + </post> | |
203 | + </token> | |
204 | + <condition> | |
205 | + <item type="ancestorWordName" condition="w" /> | |
206 | + </condition> | |
207 | + </mapping> | |
208 | + <mapping type="wordAnnotation" name="ga"> | |
209 | + <token type="string" offset="false"> | |
210 | + <pre> | |
211 | + <item type="ancestorWordName" /> | |
212 | + <item type="name" prefix="." /> | |
213 | + <item type="attribute" name="type" prefix="." /> | |
214 | + </pre> | |
215 | + <post> | |
216 | + <item type="text" /> | |
217 | + </post> | |
218 | + </token> | |
219 | + <condition> | |
220 | + <item type="ancestorWordName" condition="e" /> | |
221 | + </condition> | |
222 | + </mapping> | |
223 | + <mapping type="wordAnnotation" name="action"> | |
224 | + <token type="string" offset="false"> | |
225 | + <pre> | |
226 | + <item type="ancestorWordName" /> | |
227 | + <item type="name" prefix="." /> | |
228 | + </pre> | |
229 | + </token> | |
230 | + <condition> | |
231 | + <item type="ancestorWordName" condition="e" /> | |
232 | + </condition> | |
233 | + </mapping> | |
234 | + <!-- END WORD ANNOTATIONS --> | |
235 | + | |
236 | + <!-- START RELATIONS --> | |
237 | + <!-- END RELATIONS --> | |
238 | + | |
239 | + <!-- START GROUPS --> | |
240 | + <mapping type="group" name="tcu"> | |
241 | + <token type="string" offset="false"> | |
242 | + <pre> | |
243 | + <item type="name" /> | |
244 | + </pre> | |
245 | + </token> | |
246 | + </mapping> | |
247 | + <mapping type="group" name="u"> | |
248 | + <token type="string" offset="false"> | |
249 | + <pre> | |
250 | + <item type="name" /> | |
251 | + </pre> | |
252 | + </token> | |
253 | + </mapping> | |
254 | + <mapping type="group" name="u"> | |
255 | + <token type="string" offset="false"> | |
256 | + <pre> | |
257 | + <item type="name" /> | |
258 | + <item type="string" value=".id" /> | |
259 | + </pre> | |
260 | + <post> | |
261 | + <item type="attribute" name="uID" /> | |
262 | + </post> | |
263 | + </token> | |
264 | + <condition> | |
265 | + <item type="attribute" name="uID" /> | |
266 | + </condition> | |
267 | + </mapping> | |
268 | + <mapping type="group" name="u"> | |
269 | + <token type="string" offset="false"> | |
270 | + <pre> | |
271 | + <item type="name" /> | |
272 | + <item type="string" value=".role" /> | |
273 | + </pre> | |
274 | + <post> | |
275 | + <item type="variableFromAttribute" name="participant.role" | |
276 | + value="who" /> | |
277 | + </post> | |
278 | + </token> | |
279 | + </mapping> | |
280 | + <mapping type="group" name="u"> | |
281 | + <token type="string" offset="false"> | |
282 | + <pre> | |
283 | + <item type="name" /> | |
284 | + <item type="string" value=".name" /> | |
285 | + </pre> | |
286 | + <post> | |
287 | + <item type="variableFromAttribute" name="participant.name" | |
288 | + value="who" /> | |
289 | + </post> | |
290 | + </token> | |
291 | + <token type="string" offset="false"> | |
292 | + <pre> | |
293 | + <item type="name" /> | |
294 | + <item type="string" value=".age" /> | |
295 | + </pre> | |
296 | + <post> | |
297 | + <item type="variableFromAttribute" name="participant.age" | |
298 | + value="who" /> | |
299 | + </post> | |
300 | + </token> | |
301 | + <token type="string" offset="false"> | |
302 | + <pre> | |
303 | + <item type="name" /> | |
304 | + <item type="string" value=".sex" /> | |
305 | + </pre> | |
306 | + <post> | |
307 | + <item type="variableFromAttribute" name="participant.sex" | |
308 | + value="who" /> | |
309 | + </post> | |
310 | + </token> | |
311 | + <token type="string" offset="false"> | |
312 | + <pre> | |
313 | + <item type="name" /> | |
314 | + <item type="string" value=".birthday" /> | |
315 | + </pre> | |
316 | + <post> | |
317 | + <item type="variableFromAttribute" name="participant.birthday" | |
318 | + value="who" /> | |
319 | + </post> | |
320 | + </token> | |
321 | + <token type="string" offset="false"> | |
322 | + <pre> | |
323 | + <item type="name" /> | |
324 | + <item type="string" value=".language" /> | |
325 | + </pre> | |
326 | + <post> | |
327 | + <item type="variableFromAttribute" name="participant.language" | |
328 | + value="who" /> | |
329 | + </post> | |
330 | + </token> | |
331 | + <condition> | |
332 | + <item type="attribute" name="who" /> | |
333 | + </condition> | |
334 | + </mapping> | |
335 | + <mapping type="group" name="g"> | |
336 | + <token type="string" offset="false"> | |
337 | + <pre> | |
338 | + <item type="name" /> | |
339 | + </pre> | |
340 | + </token> | |
341 | + </mapping> | |
342 | + <mapping type="group" name="pg"> | |
343 | + <token type="string" offset="false"> | |
344 | + <pre> | |
345 | + <item type="name" /> | |
346 | + </pre> | |
347 | + </token> | |
348 | + </mapping> | |
349 | + <mapping type="group" name="sg"> | |
350 | + <token type="string" offset="false"> | |
351 | + <pre> | |
352 | + <item type="name" /> | |
353 | + </pre> | |
354 | + </token> | |
355 | + </mapping> | |
356 | + <!-- END GROUPS --> | |
357 | + | |
358 | + <!-- START GROUP ANNOTATIONS --> | |
359 | + <mapping type="groupAnnotation" name="a"> | |
360 | + <token type="string" offset="false"> | |
361 | + <pre> | |
362 | + <item type="name" /> | |
363 | + <item type="attribute" name="type" prefix="." /> | |
364 | + <item type="attribute" name="flavor" prefix="." /> | |
365 | + </pre> | |
366 | + <post> | |
367 | + <item type="text" /> | |
368 | + </post> | |
369 | + </token> | |
370 | + <condition> | |
371 | + <item type="attribute" name="type" /> | |
372 | + </condition> | |
373 | + </mapping> | |
374 | + <mapping type="groupAnnotation" name="media"> | |
375 | + <token type="string" offset="false"> | |
376 | + <pre> | |
377 | + <item type="name" /> | |
378 | + <item type="string" value=".start" /> | |
379 | + </pre> | |
380 | + <post> | |
381 | + <item type="attribute" name="start" /> | |
382 | + </post> | |
383 | + </token> | |
384 | + <condition> | |
385 | + <item type="attribute" name="start" /> | |
386 | + </condition> | |
387 | + </mapping> | |
388 | + <mapping type="groupAnnotation" name="media"> | |
389 | + <token type="string" offset="false"> | |
390 | + <pre> | |
391 | + <item type="name" /> | |
392 | + <item type="string" value=".end" /> | |
393 | + </pre> | |
394 | + <post> | |
395 | + <item type="attribute" name="end" /> | |
396 | + </post> | |
397 | + </token> | |
398 | + <condition> | |
399 | + <item type="attribute" name="end" /> | |
400 | + </condition> | |
401 | + </mapping> | |
402 | + <mapping type="groupAnnotation" name="media"> | |
403 | + <token type="string" offset="false"> | |
404 | + <pre> | |
405 | + <item type="name" /> | |
406 | + <item type="string" value=".unit" /> | |
407 | + </pre> | |
408 | + <post> | |
409 | + <item type="attribute" name="unit" /> | |
410 | + </post> | |
411 | + </token> | |
412 | + <condition> | |
413 | + <item type="attribute" name="unit" /> | |
414 | + </condition> | |
415 | + </mapping> | |
416 | + <!-- END GROUP ANNOTATIONS --> | |
417 | + | |
418 | + </mappings> | |
419 | + <!-- END MAPPINGS --> | |
420 | + | |
421 | + </parser> | |
422 | + <!-- END CONFIGURATION MTAS CHAT PARSER --> | |
423 | + | |
424 | +</mtas> | |
0 | 425 | \ No newline at end of file |
... | ... |