blob: 146d2ebbf814b304e0885721c97588bb1b484b63 [file] [log] [blame]
Akron479994e2018-07-02 13:21:44 +02001<!DOCTYPE html>
2<html>
3 <head>
4 <title>Plugin demo</title>
5 <link type="text/css" rel="stylesheet" href="/css/kalamar.css" />
Akrona99315e2018-07-03 22:56:45 +02006 <!--
7 see https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
8 <meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src https://*; child-src 'none';">
hebastae094dc62019-12-06 13:12:40 +01009 -->
10 <script>//<![CDATA[
11
12 window.KorAP = window.KorAP || {};
13
14 //]]></script>
15 <script data-main="plugin-serverdemo.js" src="../js/lib/require.js" async="async"></script>
Akron479994e2018-07-02 13:21:44 +020016 </head>
17 <body>
Akron951a9952019-05-22 16:28:53 +020018 <p>Start the demo server with <code>morbo -l 'http://*:3003' t/server/plugin.pl</code> and open <a href="http://localhost:3003/demo/plugin-server.html"><code>this website</code></a>.</p>
hebastae094dc62019-12-06 13:12:40 +010019 <main>
20 <script>
21 KorAP.koralQuery = {
22 "matches" : [ "..." ],
23 "corpus" : {
24 "@type" : "koral:docGroup",
25 "operation" : "operation:or",
26 "operands" : [ {
27 "@type" : "koral:docGroup",
28 "operation" : "operation:and",
29 "operands" : [ {
30 "@type" : "koral:doc",
31 "key" : "title",
32 "match" : "match:eq",
33 "value" : "Der Birnbaum",
34 "type" : "type:string"
35 }, {
36 "@type" : "koral:doc",
37 "key" : "pubPlace",
38 "match" : "match:eq",
39 "value" : "Mannheim",
40 "type" : "type:string"
41 }, {
42 "@type" : "koral:docGroup",
43 "operation" : "operation:or",
44 "operands" : [ {
45 "@type" : "koral:doc",
46 "key" : "subTitle",
47 "match" : "match:eq",
48 "value" : "Aufzucht und Pflege",
49 "type" : "type:string"
50 }, {
51 "@type" : "koral:doc",
52 "key" : "subTitle",
53 "match" : "match:eq",
54 "value" : "Gedichte",
55 "type" : "type:string"
56 } ]
57 } ]
58 }, {
59 "@type" : "koral:doc",
60 "key" : "pubDate",
61 "match" : "match:geq",
62 "value" : "2015-03-05",
63 "type" : "type:date",
64 "rewrites" : [ {
65 "@type" : "koral:rewrite",
66 "operation" : "operation:modification",
67 "src" : "querySerializer",
68 "scope" : "tree"
69 } ]
70 } ]
71 },
72 "query" : {
73 "wrap" : {
74 "layer" : "orth",
75 "match" : "match:eq",
76 "foundry" : "opennlp",
77 "key" : "Goethe",
78 "@type" : "koral:term"
79 },
80 "@type" : "koral:token"
81 },
82 "meta" : {
83 "serialQuery" : "tokens:s:Goethe",
84 "startIndex" : 0,
85 "version" : "unknown",
86 "itemsPerPage" : 25,
87 "context" : "p",
88 "benchmark" : "0.103553092 s",
89 "totalResults" : -1
90 }
91 };
92 </script>
93
94 <div id="resultinfo" class="found"></div>
Akron8d646d72018-07-08 13:45:53 +020095 <div id="search">
96 <ol>
Akrone1c27f62018-07-20 11:42:59 +020097 <li data-corpus-id="WPD"
98 data-doc-id="FFF"
99 data-text-id="01460"
100 data-match-id="p119-120"
101 data-available-info="base/s=spans corenlp/c=spans corenlp/ne=tokens corenlp/p=tokens corenlp/s=spans glemm/l=tokens mate/l=tokens mate/m=tokens mate/p=tokens opennlp/p=tokens opennlp/s=spans tt/l=tokens tt/p=tokens tt/s=spans xip/c=spans malt/d=rels"
102 id="WPD-FFF.01460-p119-120"
103 tabindex="6">
104 <div class="meta">WPD/III/78432</div>
105 <div class="match-main">
106 <div class="match-wrap">
107 <div class="snippet startMore endMore"><span class="context-left">Der Fehler unterläuft häufig bei der direkten Übersetzung aus dem Englischen, wenn im originalen Ausdruck die beiden Wortteile verschiedene Wörter sind und sich das Adjektiv wahlweise auf das erste oder zweite Wort bezieht. Ein Beispiel ist multiples Testproblem für multiple </span><span class="match">test</span><span class="context-right"> problem.</span></div>
108 </div>
109 </div>
110 <p class="ref"><strong>Fehlbezogenes Adjektiv</strong> by Joni2,Peterlustig,BWBot; published on 2005-03-28 as FFF.01460 (WPD)</p>
111 </li>
Akron8d646d72018-07-08 13:45:53 +0200112 </ol>
113 </div>
Akron479994e2018-07-02 13:21:44 +0200114 </main>
115 </body>
116</html>