blob: 055ddf2baaee3dd0e75e6f2f30a80e8b7f18cb04 [file] [log] [blame]
Nils Diewald4af3f0b2014-06-25 01:43:17 +00001%= javascript begin
2
3new Hint({
4 "ref" : "q-field",
5 "qlRef" : "ql-field",
6 "hintSize" : 10,
7 "hints" : {
8 "-foundries" : {
9 "corenlp" : ["corenlp/", "CoreNLP"],
10 "cnx" : ["cnx/", "Connexor"],
11 "opennlp" : ["opennlp/", "OpenNLP"],
12 "xip" : ["xip/", "Xerox"],
13 "tt" : ["tt/", "TreeTagger"],
14 "mate" : ["mate/", "Mate"]
15 },
16 "corenlp" : {
17 "ne_dewac_175m_600" : ["ne_dewac_175m_600=", "Named Entity"],
18 "ne_hgc_175m_600" : ["ne_hgc_175m_600=", "Named Entity"]
19 },
Nils Diewaldf49633a2014-11-08 22:33:25 +000020 "corenlp/ne" : ["I-LOC","I-MISC","I-ORG","I-PER"],
Nils Diewald4af3f0b2014-06-25 01:43:17 +000021 "corenlp/ne_dewac_175m_600" : ["I-LOC","I-MISC","I-ORG","I-PER"],
22 "corenlp/ne_hgc_175m_600" : ["I-LOC","I-MISC","I-ORG","I-PER"],
23 "cnx" : {
24 "c" : ["c=", "Constituency"],
25 "l" : ["l=", "Lemma"],
26 "m" : ["m=", "Morpho Syntax"],
27 "p" : ["p=", "Part of Speech"],
28 "syn" : ["syn=", "Syntax"]
29 },
30 "cnx/c" : ["np"],
31 "cnx/m" : ["Abbr","CMP","IMP","IND","INF","ORD","PAST","PCP","PERF","PL","PRES","PROG","Prop","SUB","SUP"],
32 "cnx/p" : ["A","ADV","CC","CS","DET","INTERJ","N","NUM","PREP","PRON","V"],
33 "cnx/syn" : ["@ADVL","@AUX","@CC","@MAIN","@NH","@POSTMOD","@PREMARK","@PREMOD"],
34 "opennlp" : {
35 "p" : ["p=", "Part of Speech"]
36 },
37 "opennlp/p" : ["$(","$,","$.","ADJA","ADJD","ADV","APPR","APPRART","ART","CARD","FM","KOKOM","KON","KOUI","KOUS","NE","NN","PDAT","PDS","PIAT","PIS","PPER","PPOSAT","PRELS","PRF","PROAV","PTKNEG","PTKVZ","PTKZU","PWAT","PWAV","PWS","TRUNC","VAFIN","VAINF","VAPP","VMFIN","VVFIN","VVIMP","VVINF","VVIZU","VVPP","XY"],
38 "xip" : {
39 "c" : ["c=", "Constituency"],
40 "d" : ["d=", "Dependency"],
41 "l" : ["l=", "Lemma"],
42 "p" : ["p=", "Part of Speech"]
43 },
44 "xip/c" : ["ADJ","ADV","AP","CONJ","DET","INFC","INS","ITJ","MC","NEGAT","NOUN","NP","NPA","NUM","POSTP","PP","PREP","PRON","PTCL","PUNCT","SC","SYMBOL","TOP","TRUNC","VERB"],
45 "xip/d" : ["ADJMOD","AUXIL","CONNECT","COORD","DATE","DETERM","EXPL","LOC","MODAL","NEGAT","NMOD","NMOD2","NUMMOD","OBJ","ORG","PERSON","PLINK","PRED","REFLEX","SUBJ","THEMA","TIME","TRUNC","VMAIN","VMOD","VPREF"],
46 "xip/p" : ["ADJ","ADV","CONJ","DET","ITJ","NEGAT","NOUN","NUM","POSTP","PREP","PRON","PTCL","PUNCT","SYMBOL","TRUNC","VERB"],
47 "tt" : {
48 "l" : ["l=", "Lemma"],
49 "p" : ["p=", "Part of Speech"]
50 },
51 "tt/p" : ["$.","ADJA","ADJD","ADV","APPO","APPR","APPRART","APZR","ART","CARD","FM","ITJ","KOKOM","KON","KOUI","KOUS","NE","NN","PDAT","PDS","PIAT","PIS","PPER","PPOSAT","PRELS","PRF","PROAV","PTKA","PTKNEG","PTKVZ","PTKZU","PWAT","PWAV","PWS","TRUNC","VAFIN","VAINF","VAPP","VMFIN","VMINF","VVFIN","VVIMP","VVINF","VVIZU","VVPP","XY"],
52 "mate" : {
53 "d" : ["d=", "Dependency"],
54 "l" : ["l=", "Lemma"],
55 "m" : ["m=", "Morpho Syntax"],
56 "p" : ["p=", "Part of Speech"]
57 },
58 "mate/d" : ["--","AG","AMS","APP","CC","CD","CJ","CM","CP","CVC","DA","DM","EP","JU","MNR","MO","NG","NK","NMC","OA","OC","OG","OP","PAR","PD","PG","PH","PM","PNC","RC","RE","RS","SB","SBP","SVP","UC"],
59 "mate/m" : ["<no-type>","case:*","case:acc","case:dat","case:gen","case:nom","degree:comp","degree:pos","degree:sup","gender:*","gender:fem","gender:masc","gender:neut","mood:imp","mood:ind","mood:subj","number:*","number:pl","number:sg","person:1","person:2","person:3","tense:past","tense:pres"],
60 "mate/p" : ["$(","$,","$.","<root-POS>","ADJA","ADJD","ADV","APPO","APPR","APPRART","ART","CARD","FM","ITJ","KOKOM","KON","KOUI","KOUS","NE","NN","PDAT","PDS","PIAT","PIS","PPER","PPOSAT","PPOSS","PRELAT","PRELS","PRF","PROAV","PTKA","PTKNEG","PTKVZ","PTKZU","PWAT","PWAV","PWS","TRUNC","VAFIN","VAINF","VAPP","VMFIN","VVFIN","VVIMP","VVINF","VVIZU","VVPP","XY"]
61 }}
62);
63
64
65function openTutorial (o) {
66 var tut = $("#tutorial");
67 tut.addClass("active");
68 var iframe = tut.children("iframe");
Nils Diewald4e9fbcb2014-07-15 11:45:09 +000069 iframe.attr("src", getTutorialPage());
Nils Diewald4af3f0b2014-06-25 01:43:17 +000070};
71
72function closeTutorial (o) {
73 $("#tutorial").removeClass("active");
74};
75
76function useQuery (o) {
77 var q = o.getAttribute("data-query");
78 var ql = o.getAttribute("data-query-language");
Nils Diewaldf49633a2014-11-08 22:33:25 +000079 var qc = o.getAttribute("data-query-cutoff");
80 if (qc === null)
81 qc = 0;
Nils Diewald4af3f0b2014-06-25 01:43:17 +000082 $("#ql-field").val(ql);
83 $("#q-field").val(q);
Nils Diewaldf49633a2014-11-08 22:33:25 +000084 $("#q-cutoff-field").val(qc);
Nils Diewald4af3f0b2014-06-25 01:43:17 +000085 closeTutorial();
86};
87
Nils Diewald7cad8402014-07-08 17:06:56 +000088$("#sidebar").on("click", function () {
Nils Diewald4af3f0b2014-06-25 01:43:17 +000089 $(this).toggleClass('active');
90});
91
Nils Diewald7cad8402014-07-08 17:06:56 +000092$("span.location").on("click", function () {
93 $("#sidebar").toggleClass('active');
94});
95
Nils Diewald4af3f0b2014-06-25 01:43:17 +000096% end