blob: fe422ef76584ca63626b3ad7b29e7050f32017c7 [file] [log] [blame]
Akron80055992017-12-20 16:30:52 +01001requirejs.config({
2 baseUrl: '../js/src',
3 paths : {
4 'lib': '../lib'
5 }
6});
7
8window.KorAP = window.KorAP || {};
9
10require(['match/table',
11 'lib/domReady',
12 'hint/foundries/opennlp',
13 'hint/foundries/cnx',
14 'hint/foundries/mate'
15 ], function (matchTableClass, domReady) {
16
17 var snippet = "<span title=\"cnx/l:meist\">" +
18 " <span title=\"cnx/p:ADV\">" +
19 " <span title=\"cnx/syn:@PREMOD\">" +
20 " <span title=\"mate/l:meist\">" +
21 " <span title=\"mate/p:ADV\">" +
22 " <span title=\"opennlp/p:ADV\">meist</span>" +
23 " </span>" +
24 " </span>" +
25 " </span>" +
26 " </span>" +
27 "</span>" +
28 "<span title=\"cnx/l:deutlich\">" +
29 " <span title=\"cnx/p:A\">" +
30 " <span title=\"cnx/syn:@PREMOD\">" +
31 " <span title=\"mate/l:deutlich\">" +
32 " <span title=\"mate/m:degree:pos\">" +
33 " <span title=\"mate/p:ADJD\">" +
34 " <span title=\"opennlp/p:ADJD\">deutlich</span>" +
35 " </span>" +
36 " </span>" +
37 " </span>" +
38 " </span>" +
39 " </span>" +
40 "</span>" +
41 "<span title=\"cnx/l:fähig\">" +
42 " <span title=\"cnx/l:leistung\">" +
43 " <span title=\"cnx/p:A\">" +
44 " <span title=\"cnx/syn:@NH\">" +
45 " <span title=\"mate/l:leistungsfähig\">" +
46 " <span title=\"mate/m:degree:comp\">" +
47 " <span title=\"mate/p:ADJD\">" +
48 " <span title=\"opennlp/p:ADJD\">leistungsfähiger</span>" +
49 " </span>" +
50 " </span>" +
51 " </span>" +
52 " </span>" +
53 " </span>" +
54 " </span>" +
55 "</span>";
56
57
58 domReady(function () {
59 var mt = matchTableClass.create(snippet);
60 document.getElementById('matchtable').appendChild(mt.element());
61 });
62});