Akron | 479994e | 2018-07-02 13:21:44 +0200 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>Plugin demo</title> |
| 5 | <link type="text/css" rel="stylesheet" href="/css/kalamar.css" /> |
Akron | a99315e | 2018-07-03 22:56:45 +0200 | [diff] [blame] | 6 | <!-- |
| 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';"> |
hebasta | e094dc6 | 2019-12-06 13:12:40 +0100 | [diff] [blame] | 9 | --> |
| 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> |
Akron | 479994e | 2018-07-02 13:21:44 +0200 | [diff] [blame] | 16 | </head> |
| 17 | <body> |
Akron | 951a995 | 2019-05-22 16:28:53 +0200 | [diff] [blame] | 18 | <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> |
hebasta | e094dc6 | 2019-12-06 13:12:40 +0100 | [diff] [blame] | 19 | <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> |
Akron | 8d646d7 | 2018-07-08 13:45:53 +0200 | [diff] [blame] | 95 | <div id="search"> |
| 96 | <ol> |
Akron | e1c27f6 | 2018-07-20 11:42:59 +0200 | [diff] [blame] | 97 | <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> |
Akron | 8d646d7 | 2018-07-08 13:45:53 +0200 | [diff] [blame] | 112 | </ol> |
| 113 | </div> |
Akron | 479994e | 2018-07-02 13:21:44 +0200 | [diff] [blame] | 114 | </main> |
| 115 | </body> |
| 116 | </html> |