blob: 5e0ec4473a0f4f6889dc836db7662a41830ed1ac [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001var snippet = "<span title=\"cnx/l:meist\">" +
2 " <span title=\"cnx/p:ADV\">" +
3 " <span title=\"cnx/syn:@PREMOD\">" +
4 " <span title=\"mate/l:meist\">" +
5 " <span title=\"mate/p:ADV\">" +
6 " <span title=\"opennlp/p:ADV\">meist</span>" +
7 " </span>" +
8 " </span>" +
9 " </span>" +
10 " </span>" +
11 "</span>" +
12 "<span title=\"cnx/l:deutlich\">" +
13 " <span title=\"cnx/p:A\">" +
14 " <span title=\"cnx/syn:@PREMOD\">" +
15 " <span title=\"mate/l:deutlich\">" +
16 " <span title=\"mate/m:degree:pos\">" +
Akron4e47d0b2017-07-03 17:58:37 +020017 " <span title=\"mate/m:case:nom\">" +
18 " <span title=\"mate/p:ADJD\">" +
19 " <span title=\"opennlp/p:ADJD\">deutlich</span>" +
20 " </span>" +
Nils Diewalda944fab2015-04-08 21:02:04 +000021 " </span>" +
22 " </span>" +
23 " </span>" +
24 " </span>" +
25 " </span>" +
26 "</span>" +
27 "<span title=\"cnx/l:fähig\">" +
28 " <span title=\"cnx/l:leistung\">" +
29 " <span title=\"cnx/p:A\">" +
30 " <span title=\"cnx/syn:@NH\">" +
31 " <span title=\"mate/l:leistungsfähig\">" +
32 " <span title=\"mate/m:degree:comp\">" +
33 " <span title=\"mate/p:ADJD\">" +
34 " <span title=\"opennlp/p:ADJD\">leistungsfähiger</span>" +
35 " </span>" +
36 " </span>" +
37 " </span>" +
38 " </span>" +
39 " </span>" +
40 " </span>" +
41 "</span>";
42
43var treeSnippet =
44 "<span class=\"context-left\"></span>" +
45 "<span class=\"match\">" +
46 " <span title=\"xip/c:MC\">" +
47 " <span title=\"xip/c:TOP\">" +
48 " <span title=\"xip/c:PP\">" +
49 " <span title=\"xip/c:PREP\">Mit</span>" +
50 " <span title=\"xip/c:NP\">" +
51 " <span title=\"xip/c:DET\">dieser</span>" +
52 " <span title=\"xip/c:NPA\">" +
53 " <span title=\"xip/c:NOUN\">Methode</span>" +
54 " </span>" +
55 " </span>" +
56 " </span>" +
57 " <span title=\"xip/c:VERB\">ist</span>" +
58 " <span title=\"xip/c:NP\">" +
59 " <span title=\"xip/c:PRON\">es</span>" +
60 " </span>" +
61 " <span title=\"xip/c:AP\">" +
62 " <span title=\"xip/c:ADV\">nun</span>" +
63 " <span title=\"xip/c:ADJ\">möglich</span>" +
64 " </span>" +
65 " <span title=\"xip/c:ADV\">z. B.</span>" +
66 " <span title=\"xip/c:NPA\">" +
67 " <span title=\"xip/c:NP\">" +
68 " <span title=\"xip/c:NOUN\">Voice</span>" +
69 " </span>" +
70 " </span>" + "(" +
71 " <span title=\"xip/c:INS\">" +
72 " <span title=\"xip/c:NPA\">" +
73 " <span title=\"xip/c:NP\">" +
74 " <span title=\"xip/c:NOUN\">Sprache</span>" +
75 " </span>" +
76 " </span>" +
77 " </span>" + ")" +
78 " <span title=\"xip/c:VERB\">bevorzugt</span>" +
79 " <span title=\"xip/c:PP\">" +
80 " <span title=\"xip/c:PREP\">in</span>" +
81 " <span title=\"xip/c:NP\">" +
82 " <span title=\"xip/c:PRON\">der</span>" +
83 " </span>" +
84 " <span title=\"xip/c:NPA\">" +
85 " <span title=\"xip/c:NP\">" +
86 " <span title=\"xip/c:NOUN\">Bridge</span>" +
87 " </span>" +
88 " </span>" +
89 " </span>" +
90 " <span title=\"xip/c:INFC\">" +
91 " <span title=\"xip/c:INS\">" +
92 " <span title=\"xip/c:VERB\">weiterzugeben</span>" +
93 " </span>" +
94 " </span>" +
95 " </span>" +
96 " </span>" +
97 "</span>" +
98 "<span class=\"context-right\"></span>";
99
100var treeSnippet2 =
101 "<span class=\"context-left\"><\/span>"+
102 "<span class=\"match\">"+
103 "<span title=\"xip\/c:NPA\">"+
104 "<span title=\"xip\/c:NP\">"+
105 "<span title=\"xip\/c:NOUN\">HDTV<\/span>"+
106 "<\/span>"+
107 "<\/span> "+
108 "<span title=\"xip\/c:NPA\">" +
109 "<span title=\"xip\/c:NP\">"+
110 "<span title=\"xip\/c:NOUN\">Samples<\/span>"+
111 "<\/span>"+
112 "<\/span> "+
113 "<span title=\"xip\/c:ADV\">from<\/span> "+
114 "<span title=\"xip\/c:NPA\">"+
115 "<span title=\"xip\/c:NP\">"+
116 "<span title=\"xip\/c:NOUN\">European<\/span>"+
117 "<\/span>"+
118 "<\/span> ("+
119 "<span title=\"xip\/c:INS\">"+
120 "<span title=\"xip\/c:NPA\">"+
121 "<span title=\"xip\/c:NP\">"+
122 "<span title=\"xip\/c:NOUN\">and<\/span>"+
123 "<\/span>"+
124 "<\/span> "+
125 "<span title=\"xip\/c:ADV\">other<\/span>"+
126 "<\/span>) "+
127 "<span title=\"xip\/c:ADV\">broadcasters<\/span> "+
128 "<span title=\"xip\/c:NPA\">"+
129 "<span title=\"xip\/c:NP\">"+
130 "<span title=\"xip\/c:NOUN\">and<\/span>"+
131 "<\/span>"+
132 "<\/span> "+
133 "<span title=\"xip\/c:VERB\">test<\/span> "+
134 "<span title=\"xip\/c:ADV\">transmissions<\/span> "+
135 "<span title=\"xip\/c:PREP\">in<\/span> "+
136 "<span title=\"xip\/c:NOUN\">Europe<\/span>"+
137 "<\/span>"+
138 "<span class=\"context-right\"><\/span>";
139
140var menuContent = [
141 ['cnx/c', 'cnx', 'c'],
142 ['mate/c', 'mate', 'c'],
143 ['base/c', 'base', 'c'],
144 ['xip/c', 'xip', 'c'],
145 ['tt/c', 'tt', 'c']
146];
147
148var namedEntities = [
149 ["I-LOC", "I-LOC ", "Location"],
150 ["I-MISC", "I-MISC ", "Miscellaneous"],
151 ["I-ORG", "I-ORG ", "Organization"],
152 ["I-PER", "I-PER ", "Person"]
153];
154
155// http://www.ids-mannheim.de/cosmas2/projekt/referenz/stts/morph.html
156// http://nachhalt.sfb632.uni-potsdam.de/owl-docu/stts.html
157var sttsArray = [
158 // "$.", "$(", "$,"
159 ["ADJA","ADJA ", "Attributive Adjective"],
160 ["ADJD","ADJD ", "Predicative Adjective"],
161 ["ADV","ADV ", "Adverb"],
162 ["APPO","APPO ", "Postposition"],
163 ["APPR","APPR ", "Preposition"],
164 ["APPRART","APPRART ", "Preposition with Determiner"],
165 ["APZR","APZR ","Right Circumposition"],
166 ["ART","ART ", "Determiner"],
167 ["CARD","CARD ", "Cardinal Number"],
168 ["FM","FM ", "Foreign Material"],
169 ["ITJ","ITJ ", "Interjection"],
170 ["KOKOM","KOKOM ", "Comparison Particle"],
171 ["KON","KON ", "Coordinating Conjuncion"],
172 ["KOUI","KOUI ", "Subordinating Conjunction with 'zu'"],
173 ["KOUS","KOUS ", "Subordinating Conjunction with Sentence"],
174 ["NE","NE ", "Named Entity"],
175 ["NN","NN ", "Normal Nomina"],
176 ["PAV", "PAV ", "Pronominal Adverb"],
177 ["PDAT","PDAT ","Attributive Demonstrative Pronoun"],
178 ["PDS","PDS ", "Substitutive Demonstrative Pronoun"],
179 ["PIAT","PIAT ", "Attributive Indefinite Pronoun without Determiner"],
180 ["PIDAT","PIDAT ", "Attributive Indefinite Pronoun with Determiner"],
181 ["PIS","PIS ", "Substitutive Indefinite Pronoun"],
182 ["PPER","PPER ", "Personal Pronoun"],
183 ["PPOSAT","PPOSAT ", "Attributive Possessive Pronoun"],
184 ["PPOSS","PPOSS ", "Substitutive Possessive Pronoun"],
185 ["PRELAT","PRELAT ", "Attributive Relative Pronoun"],
186 ["PRELS","PRELS ", "Substitutive Relative Pronoun"],
187 ["PRF","PRF ", "Reflexive Pronoun"],
188 ["PROAV","PROAV ", "Pronominal Adverb"],
189 ["PTKA","PTKA ","Particle with Adjective"],
190 ["PTKANT","PTKANT ", "Answering Particle"],
191 ["PTKNEG","PTKNEG ", "Negation Particle"],
192 ["PTKVZ","PTKVZ ", "Separated Verbal Particle"],
193 ["PTKZU","PTKZU ", "'zu' Particle"],
194 ["PWAT","PWAT ", "Attributive Interrogative Pronoun"],
195 ["PWAV","PWAV ", "Adverbial Interrogative Pronoun"],
196 ["PWS","PWS ", "Substitutive Interrogative Pronoun"],
197 ["TRUNC","TRUNC ","Truncated"],
198 ["VAFIN","VAFIN ", "Auxiliary Finite Verb"],
199 ["VAINF","VAINF ", "Auxiliary Infinite Verb"],
200 ["VAIMP","VAIMP ", "Auxiliary Finite Imperative Verb"],
201 ["VAPP","VAPP ", "Auxiliary Perfect Participle"],
202 ["VMFIN","VMFIN ", "Modal Finite Verb"],
203 ["VMINF","VMINF ", "Modal Infinite Verb"],
204 ["VMPP","VMPP ", "Modal Perfect Participle"],
205 ["VVFIN","VVFIN ","Finite Verb"],
206 ["VVIMP","VVIMP ", "Finite Imperative Verb"],
207 ["VVINF","VVINF ", "Infinite Verb"],
208 ["VVIZU","VVIZU ", "Infinite Verb with 'zu'"],
209 ["VVPP","VVPP ", "Perfect Participle"],
210 ["XY", "XY ", "Non-Word"]
211];
212
213var mateSttsArray = sttsArray.slice(0);
214mateSttsArray.push(
215 ["<root-POS>","<root-POS>","Root Part of Speech"]
216);
217
Nils Diewalda944fab2015-04-08 21:02:04 +0000218var vcExample = {
219 "@type":"koral:docGroup",
220 "operation":"operation:or",
221 "operands":[
222 {
223 "@type":"koral:docGroup",
224 "operation":"operation:and",
225 "operands":[
226 {
227 "@type":"koral:doc",
Nils Diewald6283d692015-04-23 20:32:53 +0000228 "key":"title",
Nils Diewalda944fab2015-04-08 21:02:04 +0000229 "value":"Der Birnbaum",
230 "match":"match:eq"
231 },
232 {
233 "@type":"koral:doc",
Nils Diewald6283d692015-04-23 20:32:53 +0000234 "key":"pubPlace",
Nils Diewalda944fab2015-04-08 21:02:04 +0000235 "value":"Mannheim",
236 "match":"match:eq"
237 },
238 {
239 "@type":"koral:docGroup",
240 "operation":"operation:or",
241 "operands":[
242 {
243 "@type":"koral:doc",
Nils Diewald6283d692015-04-23 20:32:53 +0000244 "key":"subTitle",
Nils Diewalda944fab2015-04-08 21:02:04 +0000245 "value":"Aufzucht und Pflege",
246 "match":"match:eq"
247 },
248 {
249 "@type":"koral:doc",
Nils Diewald6283d692015-04-23 20:32:53 +0000250 "key":"subTitle",
Nils Diewalda944fab2015-04-08 21:02:04 +0000251 "value":"Gedichte",
252 "match":"match:eq",
253 "rewrites" : [
254 {
255 "@type": "koral:rewrite",
256 "src" : "policy",
257 "operation" : "operation:injection",
258 }
259 ]
260 }
261 ]
262 }
263 ]
264 },
265 {
266 "@type":"koral:doc",
Nils Diewald6283d692015-04-23 20:32:53 +0000267 "key":"pubDate",
Nils Diewalda944fab2015-04-08 21:02:04 +0000268 "type":"type:date",
269 "value":"2015-03-05",
270 "match":"match:geq"
271 }
272 ]
273};
274
Nils Diewald0e6992a2015-04-14 20:13:52 +0000275var hintArray = {
Nils Diewalda944fab2015-04-08 21:02:04 +0000276 "-" : [
277 ["Connexor", "cnx/", "Constituency, Lemma, Morphology, Part-of-Speech, Syntax"],
278 ["CoreNLP", "corenlp/", "Named Entities"],
279 ["Mate", "mate/", "Lemma, Morphology, Part-of-Speech"],
280 ["OpenNLP", "opennlp/", "Part-of-Speech"],
281 ["TreeTagger", "tt/", "Lemma, Part-of-Speech"],
282 ["Xerox Parser", "xip/", "Constituency, Lemma, Part-of-Speech"]
283 ],
284 "corenlp/" : [
285 ["Named Entity", "ne=" , "Combined"],
286 ["Named Entity", "ne_dewac_175m_600=" , "ne_dewac_175m_600"],
287 ["Named Entity", "ne_hgc_175m_600=", "ne_hgc_175m_600"]
288 ],
289 "corenlp/ne=" : namedEntities,
290 "corenlp/ne_dewac_175m_600=" : namedEntities,
291 "corenlp/ne_hgc_175m_600=" : namedEntities,
292 "cnx/" : [
293 ["Constituency", "c="],
294 ["Lemma", "l="],
295 ["Morphology", "m="],
296 ["Part-of-Speech", "p="],
297 ["Syntax", "syn="]
298 ],
299 "cnx/c=" : [
300 ["np", "np ", "Nominal Phrase"]
301 ],
302 // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/morph.html
303 "cnx/m=" : [
304 ["Abbr","Abbr ", "Nouns: Abbreviation"],
305 ["CMP","CMP ", "Adjective: Comparative"],
306 ["IMP", "IMP ", "Mood: Imperative"],
307 ["IND", "IND ", "Mood: Indicative"],
308 ["INF", "INF ", "Infinitive"],
309 ["ORD","ORD ", "Numeral: Ordinal"],
310 ["PAST", "PAST ", "Tense: past"],
311 ["PCP", "PCP ", "Participle"],
312 ["PERF", "PERF ", "Perfective Participle"],
313 ["PL","PL ", "Nouns: Plural"],
314 ["PRES", "PRES ", "Tense: present"],
315 ["PROG", "PROG ", "Progressive Participle"],
316 ["Prop","Prop ", "Nouns: Proper Noun"],
317 ["SUB", "SUB ", "Mood: Subjunctive"],
318 ["SUP","SUP ", "Adjective: Superlative"]
319 ],
320 // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/morph.html
321 "cnx/p=" : [
322 ["A", "A ", "Adjective"],
323 ["ADV", "ADV ", "Adverb"],
324 ["CC", "CC ", "Coordination Marker"],
325 ["CS", "CS ", "Clause Marker"],
326 ["DET", "DET ", "Determiner"],
327 ["INTERJ", "INTERJ ", "Interjection"],
328 ["N", "N ", "Noun"],
329 ["NUM", "NUM ", "Numeral"],
330 ["PREP", "PREP ", "Preposition"],
331 ["PRON", "PRON ", "Pro-Nominal"],
332 ["V", "V ", "Verb"]
333 ],
334 // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/syntax.html
335 "cnx/syn=" : [
336 ["@ADVL", "@ADVL ", "Adverbial Head"],
337 ["@AUX", "@AUX ", "Auxiliary Verb"],
338 ["@CC", "@CC ", "Coordination"]
339 ["@MAIN", "@MAIN ", "Main Verb"],
340 ["@NH", "@NH ", "Nominal Head"],
341 ["@POSTMOD", "@POSTMOD ", "Postmodifier"],
342 ["@PREMARK", "@PREMARK ", "Preposed Marker"],
343 ["@PREMOD", "@POSTMOD ", "Premodifier"]
344 ],
345 "opennlp/" : [
346 ["Part-of-Speech", "p="]
347 ],
348 "opennlp/p=" : sttsArray,
349 "xip/" : [
350 ["Constituency", "c="],
351 // Inactive: ["Dependency", "d="],
352 ["Lemma", "l="],
353 ["Part-of-Speech", "p="],
354 ],
355 // "xip/c=" : [],
356 // Inactive: "xip/d=" : [],
357 // "xip/p=" : [],
358 "tt/" : [
359 ["Lemma", "l="],
360 ["Part-of-Speech", "p="]
361 ],
362 "tt/p=" : sttsArray,
363 "mate/" : [
364 // Inactive: "d" : ["d=", "Dependency"],
365 ["Lemma", "l="],
366 ["Morphology", "m="],
367 ["Part-of-Speech", "p="]
368 ],
369 // Inactive: mate/d=
370 "mate/p=" : mateSttsArray,
371 "mate/m=" : [
372 ["Case", "case:"],
373 ["Degree", "degree:"],
374 ["Gender", "gender:"],
375 ["Mood", "mood:"],
376 ["Number", "number:"],
377 ["Person", "person:"],
378 ["Tense","tense:"],
379 ["No type", "<no-type> "]
380 ],
381 "mate/m=case:" : [
382 ["acc", "acc ", "Accusative"],
383 ["dat","dat ", "Dative"],
384 ["gen", "gen ","Genitive"],
385 ["nom","nom ", "Nominative"],
386 ["*","* ", "Undefined"]
387 ],
388 "mate/m=degree:" : [
389 ["comp","comp ", "Comparative"],
390 ["pos","pos ", "Positive"],
391 ["sup","sup ", "Superative"]
392 ],
393 "mate/m=gender:" : [
394 ["fem", "fem ", "Feminium"],
395 ["masc", "masc ", "Masculinum"],
396 ["neut","neut ", "Neuter"],
397 ["*","* ","Undefined"]
398 ],
399 "mate/m=mood:" : [
400 ["imp","imp ", "Imperative"],
401 ["ind","ind ", "Indicative"],
402 ["subj","subj ", "Subjunctive"]
403 ],
404 "mate/m=number:" : [
405 ["pl","pl ","Plural"],
406 ["sg","sg ","Singular"],
407 ["*","* ","Undefined"]
408 ],
409 "mate/m=person:" : [
410 ["1","1 ", "First Person"],
411 ["2","2 ", "Second Person"],
412 ["3","3 ", "Third Person"]
413 ],
414 "mate/m=tense:" : [
415 ["past","past ", "Past"],
416 ["pres","pres ", "Present"]
417 ]
418};
419
Nils Diewald845282c2015-05-14 07:53:03 +0000420var queryExample = {"wrap":{"layer":"orth","match":"match:eq","foundry":"opennlp","key":"Baum","@type":"korap:term"},"@type":"korap:token"};
421
422queryExample = {
423 "@context" : "http://korap.ids-mannheim.de/ns/koral/0.3/context.jsonld",
424 "collection" : {
425 "@type" : "koral:doc",
426 "key" : "pubDate",
427 "value" : "2005-05-25",
428 "type" : "type:date",
429 "match" : "match:geq"
430 },
431 "query" : {}
432};
433
434queryExample = {
435 "@type" : "koral:docGroup",
436 "operation" : "operation:and",
437 "operands" : [{
438 "@type":"koral:doc",
439 "key":"title",
440 "match":"match:eq",
441 "value":"Der Birnbaum",
442 "type":"type:string"
443 },{
444 "@type":"koral:doc",
445 "key":"pubPlace",
446 "match":"match:eq",
447 "value":"Mannheim",
448 "type":"type:string"
449 }
450 ]
451 };
452
453queryExample = {
454 "@context" : "http://korap.ids-mannheim.de/ns/koral/0.3/context.jsonld",
455 "collection" : {},
456 "query" : {
457 "@type":"koral:group",
458 "operation" : "operation:sequence",
459 "operands" : [
460 {
461 "@type" : "koral:token",
462 "wrap" : {
463 "@type" : "koral:termGroup",
464 "relation" : "relation:and",
465 "operands" : [ {
466 "@type" : "koral:term",
467 "foundry" : "tt",
468 "key" : "ADJA",
469 "layer" : "pos",
470 "match" : "match:eq"
471 },
472 {
473 "@type" : "koral:term",
474 "foundry" : "cnx",
475 "key" : "@PREMOD",
476 "layer" : "syn",
477 "match" : "match:eq"
478 } ]
479 }
480 },
481 {
482 "@type" : "koral:token",
483 "wrap" : {
484 "@type" : "koral:term",
485 "key" : "octopus",
486 "layer" : "lemma",
487 "match" : "match:eq"
488 }
489 } ]
490 }
491};
492
493
494queryExample = {
495 "@context" : "http://korap.ids-mannheim.de/ns/koral/0.3/context.jsonld",
496 "collection" : {
497 "@type" : "koral:doc",
498 "key" : "pubDate",
499 "value" : "2005-05-25",
500 "type" : "type:date",
501 "match" : "match:geq"
502 },
503 "query" : {
504 "@type" : "koral:token",
505 "wrap" : {
506 "@type" : "koral:term",
507 "key" : "octopus",
508 "layer" : "lemma",
509 "match" : "match:eq"
510 }
511 }
512};
513
514queryExample = {
515 "@type":"koral:doc",
516 "key":"subTitle",
517 "value":"Gedichte",
518 "match":"match:eq",
519 "rewrites" : [
520 {
521 "@type": "koral:rewrite",
522 "src" : "policy",
523 "operation" : "operation:injection",
524 }
525 ]
526};
527
Nils Diewald0e6992a2015-04-14 20:13:52 +0000528
529requirejs.config({
530 baseUrl: '../js/src',
531 paths : {
532 'lib': '../lib'
Nils Diewalda944fab2015-04-08 21:02:04 +0000533 }
Nils Diewald0e6992a2015-04-14 20:13:52 +0000534});
Nils Diewalda944fab2015-04-08 21:02:04 +0000535
Akron48b1e4d2015-06-17 18:47:01 +0200536KorAP.currentQuery = queryExample;
Nils Diewald845282c2015-05-14 07:53:03 +0000537
Akronc1457bf2015-06-11 19:24:00 +0200538require(['app/en', 'init'], function (lang, init) {
Nils Diewald0e6992a2015-04-14 20:13:52 +0000539 KorAP.hintArray = hintArray;
Nils Diewalda944fab2015-04-08 21:02:04 +0000540
Nils Diewald6283d692015-04-23 20:32:53 +0000541 // Set current virtual collection
542 KorAP.currentVC = vcExample;
543
Nils Diewald0e6992a2015-04-14 20:13:52 +0000544 // Parse and show the table
545 // Override getMatchInfo API call
546 KorAP.API.getMatchInfo = function(match, callObj, cb) {
Akron311ca652017-06-26 20:39:56 +0200547
548 console.log(match);
549
Nils Diewald0e6992a2015-04-14 20:13:52 +0000550 if (callObj["spans"] !== undefined && callObj["spans"] === true) {
551 cb({ "snippet": treeSnippet2 });
552 }
553 else {
554 cb({ "snippet": snippet });
555 }
556 };
557
558 /**
559 * Do some things at the beginning.
560 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000561
Nils Diewalda944fab2015-04-08 21:02:04 +0000562 // document.getElementById('vc-choose').click();
Nils Diewalda944fab2015-04-08 21:02:04 +0000563 // init.tutorial.show();
564
Nils Diewald0e6992a2015-04-14 20:13:52 +0000565 /*
566 KorAP.HintMenu.hide = function () {};
567 init.hint.show();
Nils Diewald2488d052015-04-09 21:46:02 +0000568
Nils Diewald0e6992a2015-04-14 20:13:52 +0000569 var menu = KorAP.MatchTreeMenu.create(
570 undefined,
571 menuContent
572 );
573 menu.hide = function () {};
574 document.getElementById('menu').appendChild(menu.element());
575 menu.limit(3);
576 menu.show();
577 menu.focus();
578 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000579});