| requirejs.config({ |
| baseUrl: '../js/src', |
| paths : { |
| 'lib': '../lib' |
| } |
| }); |
| |
| window.KorAP = window.KorAP || {}; |
| |
| require(['match/table', |
| 'lib/domReady', |
| 'hint/foundries/opennlp', |
| 'hint/foundries/cnx', |
| 'hint/foundries/mate' |
| ], function (matchTableClass, domReady) { |
| |
| var snippet = "<span title=\"cnx/l:meist\">" + |
| " <span title=\"cnx/p:ADV\">" + |
| " <span title=\"cnx/syn:@PREMOD\">" + |
| " <span title=\"mate/l:meist\">" + |
| " <span title=\"mate/p:ADV\">" + |
| " <span title=\"opennlp/p:ADV\">meist</span>" + |
| " </span>" + |
| " </span>" + |
| " </span>" + |
| " </span>" + |
| "</span>" + |
| "<span title=\"cnx/l:deutlich\">" + |
| " <span title=\"cnx/p:A\">" + |
| " <span title=\"cnx/syn:@PREMOD\">" + |
| " <span title=\"mate/l:deutlich\">" + |
| " <span title=\"mate/m:degree:pos\">" + |
| " <span title=\"mate/p:ADJD\">" + |
| " <span title=\"opennlp/p:ADJD\">deutlich</span>" + |
| " </span>" + |
| " </span>" + |
| " </span>" + |
| " </span>" + |
| " </span>" + |
| "</span>" + |
| "<span title=\"cnx/l:fähig\">" + |
| " <span title=\"cnx/l:leistung\">" + |
| " <span title=\"cnx/p:A\">" + |
| " <span title=\"cnx/syn:@NH\">" + |
| " <span title=\"mate/l:leistungsfähig\">" + |
| " <span title=\"mate/m:degree:comp\">" + |
| " <span title=\"mate/p:ADJD\">" + |
| " <span title=\"opennlp/p:ADJD\">leistungsfähiger</span>" + |
| " </span>" + |
| " </span>" + |
| " </span>" + |
| " </span>" + |
| " </span>" + |
| " </span>" + |
| "</span>"; |
| |
| |
| domReady(function () { |
| var mt = matchTableClass.create(snippet); |
| document.getElementById('matchtable').appendChild(mt.element()); |
| }); |
| }); |