Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 1 | requirejs.config({ |
| 2 | baseUrl: '../js/src', |
| 3 | paths : { |
| 4 | 'lib': '../lib' |
| 5 | } |
| 6 | }); |
| 7 | |
| 8 | // Parse and show the table |
| 9 | // Override getMatchInfo API call |
| 10 | require(['init'], function () { |
| 11 | |
Nils Diewald | 4347ee9 | 2015-05-04 20:32:48 +0000 | [diff] [blame] | 12 | var snippet = "<span title=\"cnx/l:meist\">" + |
Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 13 | " <span title=\"cnx/p:ADV\">" + |
| 14 | " <span title=\"cnx/syn:@PREMOD\">" + |
| 15 | " <span title=\"mate/l:meist\">" + |
| 16 | " <span title=\"mate/p:ADV\">" + |
| 17 | " <span title=\"opennlp/p:ADV\">meist</span>" + |
| 18 | " </span>" + |
| 19 | " </span>" + |
| 20 | " </span>" + |
| 21 | " </span>" + |
| 22 | "</span>" + |
| 23 | "<span title=\"cnx/l:deutlich\">" + |
| 24 | " <span title=\"cnx/p:A\">" + |
| 25 | " <span title=\"cnx/syn:@PREMOD\">" + |
| 26 | " <span title=\"mate/l:deutlich\">" + |
| 27 | " <span title=\"mate/m:degree:pos\">" + |
| 28 | " <span title=\"mate/p:ADJD\">" + |
| 29 | " <span title=\"opennlp/p:ADJD\">deutlich</span>" + |
| 30 | " </span>" + |
| 31 | " </span>" + |
| 32 | " </span>" + |
| 33 | " </span>" + |
| 34 | " </span>" + |
| 35 | "</span>" + |
| 36 | "<span title=\"cnx/l:fähig\">" + |
| 37 | " <span title=\"cnx/l:leistung\">" + |
| 38 | " <span title=\"cnx/p:A\">" + |
| 39 | " <span title=\"cnx/syn:@NH\">" + |
| 40 | " <span title=\"mate/l:leistungsfähig\">" + |
| 41 | " <span title=\"mate/m:degree:comp\">" + |
| 42 | " <span title=\"mate/p:ADJD\">" + |
| 43 | " <span title=\"opennlp/p:ADJD\">leistungsfähiger</span>" + |
| 44 | " </span>" + |
| 45 | " </span>" + |
| 46 | " </span>" + |
| 47 | " </span>" + |
| 48 | " </span>" + |
| 49 | " </span>" + |
| 50 | "</span>"; |
| 51 | |
Akron | ad1e46a | 2018-09-19 15:55:40 +0200 | [diff] [blame] | 52 | snippet = "<span class=\"context-left\"></span>" + |
| 53 | "<span class=\"match\">"+ |
| 54 | " <span title=\"corenlp\/p:KOUI\">"+ |
| 55 | " <span title=\"marmot\/p:KOUI\">"+ |
| 56 | " <span title=\"opennlp\/p:KOUI\">"+ |
| 57 | " <span title=\"tt\/l:um\">"+ |
| 58 | " <span title=\"tt\/l:um\">"+ |
| 59 | " <span title=\"tt\/p:APPR\">"+ |
| 60 | " <span title=\"tt\/p:KOUI\">Um</span>" + |
| 61 | " </span>" + |
| 62 | " </span>" + |
| 63 | " </span>" + |
| 64 | " </span>" + |
| 65 | " </span>" + |
| 66 | " </span>"+ |
| 67 | " " + |
| 68 | " <span title=\"corenlp\/p:ART\">"+ |
| 69 | " <span title=\"marmot\/m:case:acc\">"+ |
| 70 | " <span title=\"marmot\/m:gender:masc\">"+ |
| 71 | " <span title=\"marmot\/m:number:pl\">"+ |
| 72 | " <span title=\"marmot\/p:ART\">"+ |
| 73 | " <span title=\"opennlp\/p:ART\">"+ |
| 74 | " <span title=\"tt\/l:die\">" + |
| 75 | " <span title=\"tt\/p:ART\">die</span>" + |
| 76 | " </span>" + |
| 77 | " </span>" + |
| 78 | " </span>" + |
| 79 | " </span>" + |
| 80 | " </span>" + |
| 81 | " </span>" + |
| 82 | " </span>" + |
| 83 | " " + |
| 84 | " <span title=\"corenlp\/p:APPR\">"+ |
| 85 | " <span title=\"marmot\/p:APPR\">"+ |
| 86 | " <span title=\"opennlp\/p:APPR\">"+ |
| 87 | " <span title=\"tt\/l:von\">"+ |
| 88 | " <span title=\"tt\/p:APPR\">von</span>" + |
| 89 | " </span>" + |
| 90 | " </span>" + |
| 91 | " </span>" + |
| 92 | " </span>" + |
| 93 | " " + |
| 94 | " <span title=\"corenlp\/p:PPOSAT\">"+ |
| 95 | " <span title=\"marmot\/m:case:dat\">"+ |
| 96 | " <span title=\"marmot\/m:gender:masc\">"+ |
| 97 | " <span title=\"marmot\/m:number:sg\">"+ |
| 98 | " <span title=\"marmot\/p:PPOSAT\">"+ |
| 99 | " <span title=\"opennlp\/p:PPOSAT\">"+ |
| 100 | " <span title=\"tt\/l:sein\">"+ |
| 101 | " <span title=\"tt\/p:PPOSAT\">seinem</span>" + |
| 102 | " </span>" + |
| 103 | " </span>" + |
| 104 | " </span>" + |
| 105 | " </span>" + |
| 106 | " </span>" + |
| 107 | " </span>" + |
| 108 | " </span>" + |
| 109 | " " + |
| 110 | " <span title=\"corenlp\/p:NN\">"+ |
| 111 | " <span title=\"marmot\/m:case:dat\">"+ |
| 112 | " <span title=\"marmot\/m:gender:masc\">"+ |
| 113 | " <span title=\"marmot\/m:number:sg\">"+ |
| 114 | " <span title=\"marmot\/p:NN\">"+ |
| 115 | " <span title=\"opennlp\/p:NN\">"+ |
| 116 | " <span title=\"tt\/l:Großvater\">"+ |
| 117 | " <span title=\"tt\/p:NN\">Großvater</span>" + |
| 118 | " </span>" + |
| 119 | " </span>" + |
| 120 | " </span>" + |
| 121 | " </span>" + |
| 122 | " </span>" + |
| 123 | " </span>" + |
| 124 | " </span>" + |
| 125 | " " + |
| 126 | " <span title=\"corenlp\/p:ADJA\">" + |
| 127 | " <span title=\"marmot\/m:case:acc\">" + |
| 128 | " <span title=\"marmot\/m:degree:pos\">" + |
| 129 | " <span title=\"marmot\/m:gender:fem\">" + |
| 130 | " <span title=\"marmot\/m:number:sg\">" + |
| 131 | " <span title=\"marmot\/p:ADJA\">" + |
| 132 | " <span title=\"opennlp\/p:ADJA\">" + |
| 133 | " <span title=\"tt\/l:gepflanzt\">" + |
| 134 | " <span title=\"tt\/p:ADJA\">gepflanzte</span>" + |
| 135 | " </span>" + |
| 136 | " </span>" + |
| 137 | " </span>" + |
| 138 | " </span>" + |
| 139 | " </span>" + |
| 140 | " </span>" + |
| 141 | " </span>" + |
| 142 | " </span>" + |
| 143 | " " + |
| 144 | " <span title=\"corenlp\/p:NN\">" + |
| 145 | " <span title=\"marmot\/m:case:acc\">" + |
| 146 | " <span title=\"marmot\/m:gender:fem\">" + |
| 147 | " <span title=\"marmot\/m:number:sg\">" + |
| 148 | " <span title=\"marmot\/p:NN\">" + |
| 149 | " <span title=\"opennlp\/p:NN\">" + |
| 150 | " <span title=\"tt\/l:Esche\">" + |
| 151 | " <span title=\"tt\/p:NN\">Esche</span>" + |
| 152 | " </span>" + |
| 153 | " </span>" + |
| 154 | " </span>" + |
| 155 | " </span>" + |
| 156 | " </span>" + |
| 157 | " </span>" + |
| 158 | " </span>" + |
| 159 | " " + |
| 160 | " <span title=\"corenlp\/p:VAFIN\">" + |
| 161 | " <span title=\"marmot\/m:mood:ind\">" + |
| 162 | " <span title=\"marmot\/m:number:sg\">" + |
| 163 | " <span title=\"marmot\/m:person:3\">" + |
| 164 | " <span title=\"marmot\/m:tense:pres\">" + |
| 165 | " <span title=\"marmot\/p:VAFIN\">" + |
| 166 | " <span title=\"opennlp\/p:VAFIN\">" + |
| 167 | " <span title=\"tt\/l:haben\">" + |
| 168 | " <span title=\"tt\/p:VAFIN\">hat</span>" + |
| 169 | " </span>" + |
| 170 | " </span>" + |
| 171 | " </span>" + |
| 172 | " </span>" + |
| 173 | " </span>" + |
| 174 | " </span>" + |
| 175 | " </span>" + |
| 176 | " </span>" + |
| 177 | " " + |
| 178 | " <span title=\"corenlp\/p:NE\">" + |
| 179 | " <span title=\"marmot\/m:case:nom\">" + |
| 180 | " <span title=\"marmot\/m:gender:*\">" + |
| 181 | " <span title=\"marmot\/m:number:sg\">" + |
| 182 | " <span title=\"marmot\/p:NE\">" + |
| 183 | " <span title=\"opennlp\/p:NE\">" + |
| 184 | " <span title=\"tt\/l:Behrens\">" + |
| 185 | " <span title=\"tt\/p:NE\">Behrens</span>" + |
| 186 | " </span>" + |
| 187 | " </span>" + |
| 188 | " </span>" + |
| 189 | " </span>" + |
| 190 | " </span>" + |
| 191 | " </span>" + |
| 192 | " </span>" + |
| 193 | " " + |
| 194 | " <span title=\"corenlp\/p:APPR\">" + |
| 195 | " <span title=\"marmot\/p:APPR\">" + |
| 196 | " <span title=\"opennlp\/p:APPR\">" + |
| 197 | " <span title=\"tt\/l:bei\">" + |
| 198 | " <span title=\"tt\/p:APPR\">bei</span>" + |
| 199 | " </span>" + |
| 200 | " </span>" + |
| 201 | " </span>" + |
| 202 | " </span>" + |
| 203 | " " + |
| 204 | " <span title=\"corenlp\/p:ART\">" + |
| 205 | " <span title=\"marmot\/m:case:dat\">" + |
| 206 | " <span title=\"marmot\/m:gender:fem\">" + |
| 207 | " <span title=\"marmot\/m:number:sg\">" + |
| 208 | " <span title=\"marmot\/p:ART\">" + |
| 209 | " <span title=\"opennlp\/p:ART\">" + |
| 210 | " <span title=\"tt\/l:die\">" + |
| 211 | " <span title=\"tt\/p:ART\">der</span>" + |
| 212 | " </span>" + |
| 213 | " </span>" + |
| 214 | " </span>" + |
| 215 | " </span>" + |
| 216 | " </span>" + |
| 217 | " </span>" + |
| 218 | " </span>" + |
| 219 | " " + |
| 220 | " <span title=\"corenlp\/p:NN\">" + |
| 221 | " <span title=\"marmot\/m:case:dat\">" + |
| 222 | " <span title=\"marmot\/m:gender:fem\">" + |
| 223 | " <span title=\"marmot\/m:number:sg\">" + |
| 224 | " <span title=\"marmot\/p:NN\">" + |
| 225 | " <span title=\"opennlp\/p:NN\">" + |
| 226 | " <span title=\"tt\/l:Vergrößerung\">" + |
| 227 | " <span title=\"tt\/p:NN\">Vergrößerung</span>" + |
| 228 | " </span>" + |
| 229 | " </span>" + |
| 230 | " </span>" + |
| 231 | " </span>" + |
| 232 | " </span>" + |
| 233 | " </span>" + |
| 234 | " </span>" + |
| 235 | " " + |
| 236 | " <span title=\"corenlp\/p:ART\">" + |
| 237 | " <span title=\"marmot\/m:case:gen\">" + |
| 238 | " <span title=\"marmot\/m:gender:neut\">" + |
| 239 | " <span title=\"marmot\/m:number:sg\">" + |
| 240 | " <span title=\"marmot\/p:ART\">" + |
| 241 | " <span title=\"opennlp\/p:ART\">" + |
| 242 | " <span title=\"tt\/l:die\">" + |
| 243 | " <span title=\"tt\/p:ART\">des</span>" + |
| 244 | " </span>" + |
| 245 | " </span>" + |
| 246 | " </span>" + |
| 247 | " </span>" + |
| 248 | " </span>" + |
| 249 | " </span>" + |
| 250 | " </span>" + |
| 251 | " " + |
| 252 | " <span title=\"corenlp\/p:NN\">" + |
| 253 | " <span title=\"marmot\/m:case:gen\">" + |
| 254 | " <span title=\"marmot\/m:gender:neut\">" + |
| 255 | " <span title=\"marmot\/m:number:sg\">" + |
| 256 | " <span title=\"marmot\/p:NN\">" + |
| 257 | " <span title=\"opennlp\/p:NN\">" + |
| 258 | " <span title=\"tt\/l:Laden\">" + |
| 259 | " <span title=\"tt\/p:NN\">Ladens</span>" + |
| 260 | " </span>" + |
| 261 | " </span>" + |
| 262 | " </span>" + |
| 263 | " </span>" + |
| 264 | " </span>" + |
| 265 | " </span>" + |
| 266 | " </span>" + |
| 267 | " " + |
| 268 | " <span title=\"corenlp\/p:ADV\">" + |
| 269 | " <span title=\"marmot\/p:ADV\">" + |
| 270 | " <span title=\"opennlp\/p:ADV\">" + |
| 271 | " <span title=\"tt\/l:einfach\">" + |
| 272 | " <span title=\"tt\/p:ADJD\">einfach</span>" + |
| 273 | " </span>" + |
| 274 | " </span>" + |
| 275 | " </span>" + |
| 276 | " </span>" + |
| 277 | " " + |
| 278 | " <span title=\"corenlp\/p:VVPP\">" + |
| 279 | " <span title=\"marmot\/p:VVPP\">" + |
| 280 | " <span title=\"opennlp\/p:VVPP\">" + |
| 281 | " <span title=\"tt\/l:herumbauen\">" + |
| 282 | " <span title=\"tt\/p:VVPP\">herumgebaut</span>" + |
| 283 | " </span>" + |
| 284 | " </span>" + |
| 285 | " </span>" + |
| 286 | " </span>" + |
| 287 | " : " + |
| 288 | " <span title=\"corenlp\/p:ADV\">" + |
| 289 | " <span title=\"marmot\/p:ADV\">" + |
| 290 | " <span title=\"opennlp\/p:ADV\">" + |
| 291 | " <span title=\"tt\/l:nun\">" + |
| 292 | " <span title=\"tt\/p:ADV\">Nun</span>" + |
| 293 | " </span>" + |
| 294 | " </span>" + |
| 295 | " </span>" + |
| 296 | " </span>" + |
| 297 | " " + |
| 298 | " <span title=\"corenlp\/p:VVFIN\">" + |
| 299 | " <span title=\"marmot\/m:mood:ind\">" + |
| 300 | " <span title=\"marmot\/m:number:sg\">" + |
| 301 | " <span title=\"marmot\/m:person:3\">" + |
| 302 | " <span title=\"marmot\/m:tense:pres\">" + |
| 303 | " <span title=\"marmot\/p:VVFIN\">" + |
| 304 | " <span title=\"opennlp\/p:VVFIN\">" + |
| 305 | " <span title=\"tt\/l:stehen\">" + |
| 306 | " <span title=\"tt\/p:VVFIN\">steht</span>" + |
| 307 | " </span>" + |
| 308 | " </span>" + |
| 309 | " </span>" + |
| 310 | " </span>" + |
| 311 | " </span>" + |
| 312 | " </span>" + |
| 313 | " </span>" + |
| 314 | " </span>" + |
| 315 | " " + |
| 316 | " <mark>" + |
| 317 | " <span title=\"corenlp\/p:ART\">" + |
| 318 | " <span title=\"marmot\/m:case:nom\">" + |
| 319 | " <span title=\"marmot\/m:gender:masc\">" + |
| 320 | " <span title=\"marmot\/m:number:sg\">" + |
| 321 | " <span title=\"marmot\/p:ART\">" + |
| 322 | " <span title=\"opennlp\/p:ART\">" + |
| 323 | " <span title=\"tt\/l:die\">" + |
| 324 | " <span title=\"tt\/p:ART\">der</span>" + |
| 325 | " </span>" + |
| 326 | " </span>" + |
| 327 | " </span>" + |
| 328 | " </span>" + |
| 329 | " </span>" + |
| 330 | " </span>" + |
| 331 | " </span>" + |
| 332 | " " + |
| 333 | " <span title=\"corenlp\/p:ADJA\">" + |
| 334 | " <span title=\"marmot\/m:case:nom\">" + |
| 335 | " <span title=\"marmot\/m:degree:pos\">" + |
| 336 | " <span title=\"marmot\/m:gender:masc\">" + |
| 337 | " <span title=\"marmot\/m:number:sg\">" + |
| 338 | " <span title=\"marmot\/p:ADJA\">" + |
| 339 | " <span title=\"opennlp\/p:ADJA\">" + |
| 340 | " <span title=\"tt\/l:alt\">" + |
| 341 | " <span title=\"tt\/p:ADJA\">alte</span>" + |
| 342 | " </span>" + |
| 343 | " </span>" + |
| 344 | " </span>" + |
| 345 | " </span>" + |
| 346 | " </span>" + |
| 347 | " </span>" + |
| 348 | " </span>" + |
| 349 | " </span>" + |
| 350 | " " + |
| 351 | " <span title=\"corenlp\/p:NN\">" + |
| 352 | " <span title=\"marmot\/m:case:nom\">" + |
| 353 | " <span title=\"marmot\/m:gender:masc\">" + |
| 354 | " <span title=\"marmot\/m:number:sg\">" + |
| 355 | " <span title=\"marmot\/p:NN\">" + |
| 356 | " <span title=\"opennlp\/p:NN\">" + |
| 357 | " <span title=\"tt\/l:Baum\">" + |
| 358 | " <span title=\"tt\/p:NN\">Baum</span>" + |
| 359 | " </span>" + |
| 360 | " </span>" + |
| 361 | " </span>" + |
| 362 | " </span>" + |
| 363 | " </span>" + |
| 364 | " </span>" + |
| 365 | " </span>" + |
| 366 | " " + |
| 367 | " </mark> <span title=\"corenlp\/p:ADV\">" + |
| 368 | " <span title=\"marmot\/p:ADV\">" + |
| 369 | " <span title=\"opennlp\/p:ADV\">" + |
| 370 | " <span title=\"tt\/l:mitten\">" + |
| 371 | " <span title=\"tt\/p:ADV\">mitten</span>" + |
| 372 | " </span>" + |
| 373 | " </span>" + |
| 374 | " </span>" + |
| 375 | " </span>" + |
| 376 | " " + |
| 377 | " <span title=\"corenlp\/p:APPR\">" + |
| 378 | " <span title=\"marmot\/p:APPR\">" + |
| 379 | " <span title=\"opennlp\/p:APPR\">" + |
| 380 | " <span title=\"tt\/l:in\">" + |
| 381 | " <span title=\"tt\/p:APPR\">in</span>" + |
| 382 | " </span>" + |
| 383 | " </span>" + |
| 384 | " </span>" + |
| 385 | " </span>" + |
| 386 | " " + |
| 387 | " <span title=\"corenlp\/p:ART\">" + |
| 388 | " <span title=\"marmot\/m:case:dat\">" + |
| 389 | " <span title=\"marmot\/m:gender:fem\">" + |
| 390 | " <span title=\"marmot\/m:number:sg\">" + |
| 391 | " <span title=\"marmot\/p:ART\">" + |
| 392 | " <span title=\"opennlp\/p:ART\">" + |
| 393 | " <span title=\"tt\/l:die\">" + |
| 394 | " <span title=\"tt\/p:ART\">der</span>" + |
| 395 | " </span>" + |
| 396 | " </span>" + |
| 397 | " </span>" + |
| 398 | " </span>" + |
| 399 | " </span>" + |
| 400 | " </span>" + |
| 401 | " </span>" + |
| 402 | " " + |
| 403 | " <span title=\"marmot\/p:TRUNC\">" + |
| 404 | " <span title=\"opennlp\/p:TRUNC\">" + |
| 405 | " <span title=\"tt\/l:Obst-\">" + |
| 406 | " <span title=\"tt\/p:TRUNC\">Obst-</span>" + |
| 407 | " </span>" + |
| 408 | " </span>" + |
| 409 | " </span>" + |
| 410 | " " + |
| 411 | " <span title=\"corenlp\/p:KON\">" + |
| 412 | " <span title=\"marmot\/p:KON\">" + |
| 413 | " <span title=\"opennlp\/p:KON\">" + |
| 414 | " <span title=\"tt\/l:und\">" + |
| 415 | " <span title=\"tt\/p:KON\">und</span>" + |
| 416 | " </span>" + |
| 417 | " </span>" + |
| 418 | " </span>" + |
| 419 | " </span>" + |
| 420 | " " + |
| 421 | " <span title=\"corenlp\/p:NN\">" + |
| 422 | " <span title=\"marmot\/m:case:gen\">" + |
| 423 | " <span title=\"marmot\/m:gender:fem\">" + |
| 424 | " <span title=\"marmot\/m:number:sg\">" + |
| 425 | " <span title=\"marmot\/p:NN\">" + |
| 426 | " <span title=\"opennlp\/p:NN\">" + |
| 427 | " <span title=\"tt\/l:Gemüseabteilung\">" + |
| 428 | " <span title=\"tt\/p:NN\">Gemüseabteilung</span>" + |
| 429 | " </span>" + |
| 430 | " </span>" + |
| 431 | " </span>" + |
| 432 | " </span>" + |
| 433 | " </span>" + |
| 434 | " </span>" + |
| 435 | " </span>" + |
| 436 | " ." + |
| 437 | "</span>" + |
| 438 | "<span class=\"context-right\">" + |
| 439 | "</span>"; |
| 440 | |
Akron | 158fce1 | 2019-12-17 14:43:29 +0100 | [diff] [blame] | 441 | // with cut and verbal |
Akron | 083ec57 | 2019-05-16 18:30:40 +0200 | [diff] [blame] | 442 | snippet = "<span class=\"context-left\"><\/span>"+ |
| 443 | "<span class=\"match\">" + |
Akron | 1a780fe | 2019-05-21 15:59:00 +0200 | [diff] [blame] | 444 | "<span class=\"cutted\"><\/span>" + |
| 445 | "Außerdem " + |
Akron | 083ec57 | 2019-05-16 18:30:40 +0200 | [diff] [blame] | 446 | "<span title=\"cnx/l:meist\">" + |
Akron | 5dc3117 | 2019-05-15 18:43:48 +0200 | [diff] [blame] | 447 | " <span title=\"cnx/p:ADV\">" + |
| 448 | " <span title=\"cnx/syn:@PREMOD\">" + |
| 449 | " <span title=\"mate/l:meist\">" + |
| 450 | " <span title=\"mate/p:ADV\">" + |
| 451 | " <span title=\"opennlp/p:ADV\">meist</span>" + |
| 452 | " </span>" + |
| 453 | " </span>" + |
| 454 | " </span>" + |
| 455 | " </span>" + |
| 456 | "</span>" + |
| 457 | "<span title=\"cnx/l:deutlich\">" + |
| 458 | " <span title=\"cnx/p:A\">" + |
| 459 | " <span title=\"cnx/syn:@PREMOD\">" + |
| 460 | " <span title=\"mate/l:deutlich\">" + |
| 461 | " <span title=\"mate/m:degree:pos\">" + |
| 462 | " <span title=\"mate/p:ADJD\">" + |
| 463 | " <span title=\"opennlp/p:ADJD\">deutlich</span>" + |
| 464 | " </span>" + |
| 465 | " </span>" + |
| 466 | " </span>" + |
| 467 | " </span>" + |
| 468 | " </span>" + |
| 469 | "</span>" + |
Akron | 158fce1 | 2019-12-17 14:43:29 +0100 | [diff] [blame] | 470 | |
| 471 | "<span title=\"dgd/para:incident\">▮</span>" + |
| 472 | "<span title=\"dgd/para:vocal\">▮</span>" + |
| 473 | |
Akron | 5dc3117 | 2019-05-15 18:43:48 +0200 | [diff] [blame] | 474 | "<span title=\"cnx/l:fähig\">" + |
| 475 | " <span title=\"cnx/l:leistung\">" + |
| 476 | " <span title=\"cnx/p:A\">" + |
| 477 | " <span title=\"cnx/syn:@NH\">" + |
| 478 | " <span title=\"mate/l:leistungsfähig\">" + |
| 479 | " <span title=\"mate/m:degree:comp\">" + |
| 480 | " <span title=\"mate/p:ADJD\">" + |
| 481 | " <span title=\"opennlp/p:ADJD\">leistungsfähiger</span>" + |
| 482 | " </span>" + |
| 483 | " </span>" + |
| 484 | " </span>" + |
| 485 | " </span>" + |
| 486 | " </span>" + |
| 487 | " </span>" + |
Akron | 083ec57 | 2019-05-16 18:30:40 +0200 | [diff] [blame] | 488 | " und robust sind auch die anderen Traktoren, die hier der Übersicht wegen keine Erwähnung finden können." + |
| 489 | "<span class=\"cutted\"><\/span>" + |
| 490 | "</span>"+ |
Akron | 5dc3117 | 2019-05-15 18:43:48 +0200 | [diff] [blame] | 491 | "</span>"; |
| 492 | |
Akron | 98a933f | 2016-08-11 00:19:17 +0200 | [diff] [blame] | 493 | var treeSnippet = |
Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 494 | "<span class=\"context-left\"></span>" + |
| 495 | "<span class=\"match\">" + |
| 496 | " <span title=\"xip/c:MC\">" + |
| 497 | " <span title=\"xip/c:TOP\">" + |
| 498 | " <span title=\"xip/c:PP\">" + |
| 499 | " <span title=\"xip/c:PREP\">Mit</span>" + |
| 500 | " <span title=\"xip/c:NP\">" + |
| 501 | " <span title=\"xip/c:DET\">dieser</span>" + |
| 502 | " <span title=\"xip/c:NPA\">" + |
| 503 | " <span title=\"xip/c:NOUN\">Methode</span>" + |
| 504 | " </span>" + |
| 505 | " </span>" + |
| 506 | " </span>" + |
| 507 | " <span title=\"xip/c:VERB\">ist</span>" + |
Akron | 98a933f | 2016-08-11 00:19:17 +0200 | [diff] [blame] | 508 | " <mark>" + |
| 509 | " <span title=\"xip/c:NP\">" + |
| 510 | " <span title=\"xip/c:PRON\">es</span>" + |
| 511 | " </span>" + |
| 512 | " <span title=\"xip/c:AP\">" + |
| 513 | " <span title=\"xip/c:ADV\">nun</span>" + |
| 514 | " <span title=\"xip/c:ADJ\">möglich</span>" + |
| 515 | " </span>" + |
| 516 | " </mark>" + |
Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 517 | " <span title=\"xip/c:ADV\">z. B.</span>" + |
| 518 | " <span title=\"xip/c:NPA\">" + |
| 519 | " <span title=\"xip/c:NP\">" + |
| 520 | " <span title=\"xip/c:NOUN\">Voice</span>" + |
| 521 | " </span>" + |
| 522 | " </span>" + "(" + |
| 523 | " <span title=\"xip/c:INS\">" + |
| 524 | " <span title=\"xip/c:NPA\">" + |
| 525 | " <span title=\"xip/c:NP\">" + |
| 526 | " <span title=\"xip/c:NOUN\">Sprache</span>" + |
| 527 | " </span>" + |
| 528 | " </span>" + |
| 529 | " </span>" + ")" + |
| 530 | " <span title=\"xip/c:VERB\">bevorzugt</span>" + |
| 531 | " <span title=\"xip/c:PP\">" + |
| 532 | " <span title=\"xip/c:PREP\">in</span>" + |
| 533 | " <span title=\"xip/c:NP\">" + |
| 534 | " <span title=\"xip/c:PRON\">der</span>" + |
| 535 | " </span>" + |
| 536 | " <span title=\"xip/c:NPA\">" + |
| 537 | " <span title=\"xip/c:NP\">" + |
| 538 | " <span title=\"xip/c:NOUN\">Bridge</span>" + |
| 539 | " </span>" + |
| 540 | " </span>" + |
| 541 | " </span>" + |
| 542 | " <span title=\"xip/c:INFC\">" + |
| 543 | " <span title=\"xip/c:INS\">" + |
| 544 | " <span title=\"xip/c:VERB\">weiterzugeben</span>" + |
| 545 | " </span>" + |
| 546 | " </span>" + |
| 547 | " </span>" + |
| 548 | " </span>" + |
| 549 | "</span>" + |
| 550 | "<span class=\"context-right\"></span>"; |
| 551 | |
Akron | aa01dca | 2018-02-05 19:51:28 +0100 | [diff] [blame] | 552 | |
| 553 | var relSnippet = |
| 554 | "<span class=\"context-left\"></span>"+ |
| 555 | "<span class=\"match\">"+ |
| 556 | " <span xml:id=\"token-WDD17/982/72848-p15836-15839\">"+ |
| 557 | " <span xlink:title=\"lwc/d:NK\" xlink:show=\"none\" xlink:href=\"#token-WDD17/982/72848-p15838\">Ein</span>"+ |
| 558 | " "+ |
| 559 | " <span xlink:title=\"lwc/d:NK\" xlink:show=\"none\" xlink:href=\"#token-WDD17/982/72848-p15838\">letztes</span>"+ |
| 560 | " "+ |
| 561 | " <span xml:id=\"token-WDD17/982/72848-p15838\">"+ |
| 562 | // s1464_n2 "ein" -> ":" |
| 563 | " <span xlink:title=\"lwc/d:--\" xlink:show=\"none\" xlink:href=\"#token-WDD17/982/72848-p15836-15839\">mal</span>"+ |
| 564 | " </span>"+ |
| 565 | ": "+ |
| 566 | " <span xml:id=\"token-WDD17/982/72848-p15839-15840\">"+ |
| 567 | " <span xlink:title=\"lwc/d:--\" xlink:show=\"none\" xlink:href=\"#token-WDD17/982/72848-p15839-15840\">AL</span>"+ |
| 568 | " </span>"+ |
| 569 | " </span>"+ |
| 570 | " <span xlink:show=\"other\" data-action=\"join\" xlink:href=\"#token-WDD17/982/72848-p15839-15840\">"+ |
| 571 | ":"+ |
| 572 | " <span xml:id=\"token-WDD17/982/72848-p15840-15846\">"+ |
| 573 | " <span xml:id=\"token-WDD17/982/72848-p15840\">"+ |
| 574 | " <span xlink:title=\"lwc/d:--\" xlink:show=\"none\" xlink:href=\"#token-WDD17/982/72848-p15840-15846\">halt</span>"+ |
| 575 | " </span>"+ |
| 576 | " </span>"+ |
| 577 | " </span>"+ |
| 578 | " <span xlink:show=\"other\" data-action=\"join\" xlink:href=\"#token-WDD17/982/72848-p15840-15846\">"+ |
| 579 | " "+ |
| 580 | " <span xlink:title=\"lwc/d:NK\" xlink:show=\"none\" xlink:href=\"#token-WDD17/982/72848-p15842\">den</span>"+ |
| 581 | " "+ |
| 582 | " <span xml:id=\"token-WDD17/982/72848-p15842\">"+ |
| 583 | " <span xlink:title=\"lwc/d:OA\" xlink:show=\"none\" xlink:href=\"#token-WDD17/982/72848-p15843\">Ball</span>"+ |
| 584 | " </span>"+ |
| 585 | " "+ |
| 586 | " <span xml:id=\"token-WDD17/982/72848-p15843\">"+ |
| 587 | " <span xlink:title=\"lwc/d:PD\" xlink:show=\"none\" xlink:href=\"#token-WDD17/982/72848-p15840\">flach</span>"+ |
| 588 | " </span>"+ |
| 589 | ", "+ |
| 590 | " <mark>"+ |
| 591 | " <span xlink:title=\"lwc/d:MO\" xlink:show=\"none\" xlink:href=\"#token-WDD17/982/72848-p15845\">ganz</span>"+ |
| 592 | " "+ |
| 593 | " <span xml:id=\"token-WDD17/982/72848-p15845\">"+ |
| 594 | " <span xlink:title=\"lwc/d:CJ\" xlink:show=\"none\" xlink:href=\"#token-WDD17/982/72848-p15843\">flach</span>"+ |
| 595 | " </span>"+ |
| 596 | " </mark>"+ |
| 597 | " </span>"+ |
| 598 | "</span>"+ |
| 599 | "<span class=\"context-right\"></span>"; |
| 600 | |
Akron | 0ad7cd2 | 2018-02-08 18:03:06 +0100 | [diff] [blame] | 601 | var meta = {"messages":[["Response format is temporary"]],"@context":"http://korap.ids-mannheim.de/ns/KoralQuery/v0.3/context.jsonld","meta":{},"document":{"@type":"koral:document","fields":[{"@type":"koral:field","type":"type:store","key":"ref","value":"My reference"},{"@type":"koral:field","type":"type:text","key":"title","value":"Der Name der Rose"},{"@type":"koral:field","type":"type:string","key":"textSigle","value":"a/b/c"},{"@type":"koral:field","type":"type:string","key":"keyword","value":["baum","wald"]},{"@type":"koral:field","type":"type:number","key":"zahl1","value":56},{"@type":"koral:field","type":"type:string","key":"name","value":"Peter"}]}}; |
| 602 | |
Akron | bf3fc9d | 2018-03-08 12:36:39 +0100 | [diff] [blame] | 603 | meta = {"messages":[["Response format is temporary"]],"@context":"http://korap.ids-mannheim.de/ns/KoralQuery/v0.3/context.jsonld","meta":{},"document":{"@type":"koral:document","fields":[{"@type":"koral:field","type":"type:number","key":"pubDate","value":20170701},{"@type":"koral:field","type":"type:string","key":"textSigle","value":"WDD17/982/72848"},{"@type":"koral:field","type":"type:string","key":"foundries","value":"dereko dereko/structure dereko/structure/base-sentences-paragraphs-pagebreaks lwc lwc/dependency treetagger treetagger/morpho"},{"@type":"koral:field","type":"type:string","key":"corpusSigle","value":"WDD17"},{"@type":"koral:field","type":"type:string","key":"docSigle","value":"WDD17/982"},{"@type":"koral:field","type":"type:store","key":"reference","value":"Diskussion:99 Namen Allahs/Archiv/1, In: Wikipedia - URL:http://de.wikipedia.org/wiki/Diskussion:99_Namen_Allahs/Archiv/1: Wikipedia, 2017"},{"@type":"koral:field","type":"type:text","key":"author","value":"ArchivBot, u.a."},{"@type":"koral:field","type":"type:number","key":"creationDate","value":20140609},{"@type":"koral:field","type":"type:string","key":"textTypeArt","value":"Diskussion"},{"@type":"koral:field","type":"type:store","key":"editor","value":"wikipedia.org"},{"@type":"koral:field","type":"type:text","key":"title","value":"Diskussion:99 Namen Allahs/Archiv/1"},{"@type":"koral:field","type":"type:store","key":"tokenSource","value":"base#tokens"},{"@type":"koral:field","type":"type:store","key":"layerInfos","value":"dereko/s=spans lwc/d=rels tt/l=tokens tt/p=tokens"},{"@type":"koral:field","type":"type:string","key":"textClass","value":"staat-gesellschaft biographien-interviews"},{"@type":"koral:field","type":"type:string","key":"availability","value":"CC-BY-SA"}]}}; |
Akron | 0ad7cd2 | 2018-02-08 18:03:06 +0100 | [diff] [blame] | 604 | |
Akron | bf3fc9d | 2018-03-08 12:36:39 +0100 | [diff] [blame] | 605 | meta = { |
| 606 | "@context":"http:\/\/korap.ids-mannheim.de\/ns\/KoralQuery\/v0.3\/context.jsonld", |
| 607 | "document":{ |
| 608 | "@type":"koral:document", |
| 609 | "fields":[ |
| 610 | { |
| 611 | "@type":"koral:field", |
| 612 | "key":"editor", |
| 613 | "type":"type:store", |
| 614 | "value":"wikipedia.org" |
| 615 | }, |
| 616 | { |
| 617 | "@type":"koral:field", |
| 618 | "key":"textSigle", |
| 619 | "type":"type:string", |
| 620 | "value":"WPD15\/264\/58336" |
| 621 | }, |
| 622 | { |
| 623 | "@type":"koral:field", |
| 624 | "key":"author", |
| 625 | "type":"type:text", |
| 626 | "value":"Sprachpfleger, u.a." |
| 627 | }, |
| 628 | { |
| 629 | "@type":"koral:field", |
| 630 | "key":"docSigle", |
| 631 | "type":"type:string", |
| 632 | "value":"WPD15\/264" |
| 633 | }, |
| 634 | { |
| 635 | "@type":"koral:field", |
| 636 | "key":"textTypeArt", |
| 637 | "type":"type:string", |
| 638 | "value":"Enzyklopädie-Artikel" |
| 639 | }, |
| 640 | { |
| 641 | "@type":"koral:field", |
| 642 | "key":"language", |
| 643 | "type":"type:string", |
| 644 | "value":"de" |
| 645 | }, |
| 646 | { |
| 647 | "@type":"koral:field", |
Akron | a0ea3c3 | 2018-12-14 18:33:48 +0100 | [diff] [blame] | 648 | "key":"link", |
| 649 | "type":"type:attachement", |
| 650 | "value":"data:application/x.korap-link;title=Wikipedia,https://de.wikipedia.org/wiki/Beispiel" |
| 651 | }, |
| 652 | { |
| 653 | "@type":"koral:field", |
Akron | bf3fc9d | 2018-03-08 12:36:39 +0100 | [diff] [blame] | 654 | "key":"docTitle", |
| 655 | "type":"type:text", |
| 656 | "value":"Wikipedia, Artikel mit Anfangszahl 2, Teil 64" |
| 657 | }, |
| 658 | { |
| 659 | "@type":"koral:field", |
| 660 | "key":"textType", |
| 661 | "type":"type:string", |
| 662 | "value":"Enzyklopädie" |
| 663 | }, |
| 664 | { |
| 665 | "@type":"koral:field", |
| 666 | "key":"availability", |
| 667 | "type":"type:string", |
| 668 | "value":"CC-BY-SA" |
| 669 | }, |
| 670 | { |
| 671 | "@type":"koral:field", |
| 672 | "key":"foundries", |
| 673 | "type":"type:keywords", |
| 674 | "value":[ |
| 675 | "corenlp", |
| 676 | "corenlp\/constituency", |
| 677 | "corenlp\/morpho", |
| 678 | "corenlp\/sentences", |
| 679 | "dereko", |
| 680 | "dereko\/structure", |
| 681 | "dereko\/structure\/base-sentences-paragraphs-pagebreaks", |
| 682 | "opennlp", |
| 683 | "opennlp\/morpho", |
| 684 | "opennlp\/sentences" |
| 685 | ] |
| 686 | }, |
| 687 | { |
| 688 | "@type":"koral:field", |
| 689 | "key":"creationDate", |
| 690 | "type":"type:date", |
| 691 | "value":"2015-04-17" |
| 692 | }, |
| 693 | { |
| 694 | "@type":"koral:field", |
| 695 | "key":"title", |
| 696 | "type":"type:text", |
| 697 | "value":"22:43 – Das Schicksal hat einen Plan" |
| 698 | }, |
| 699 | { |
| 700 | "@type":"koral:field", |
| 701 | "key":"pubDate", |
| 702 | "type":"type:date", |
| 703 | "value":"2015-05-01" |
| 704 | }, |
| 705 | { |
| 706 | "@type":"koral:field", |
| 707 | "key":"reference", |
| 708 | "type":"type:store", |
| 709 | "value":"22:43 – Das Schicksal hat einen Plan, In: Wikipedia - URL:http:\/\/de.wikipedia.org\/wiki\/22:43_–_Das_Schicksal_hat_einen_Plan: Wikipedia, 2015" |
| 710 | }, |
| 711 | { |
| 712 | "@type":"koral:field", |
| 713 | "key":"textClass", |
| 714 | "type":"type:keywords", |
| 715 | "value":["kultur","film"] |
| 716 | }, |
| 717 | { |
| 718 | "@type":"koral:field", |
| 719 | "key":"tokenSource", |
| 720 | "type":"type:store", |
| 721 | "value":"base#tokens" |
| 722 | }, |
| 723 | { |
| 724 | "@type":"koral:field", |
| 725 | "key":"publisher", |
| 726 | "type":"type:store", |
| 727 | "value":"Wikipedia" |
| 728 | }, |
| 729 | { |
| 730 | "@type":"koral:field", |
| 731 | "key":"layerInfos", |
| 732 | "type":"type:store", |
| 733 | "value":"corenlp\/c=spans corenlp\/p=tokens corenlp\/s=spans dereko\/s=spans opennlp\/p=tokens opennlp\/s=spans" |
| 734 | }, |
| 735 | { |
| 736 | "@type":"koral:field", |
| 737 | "key":"pubPlace", |
| 738 | "type":"type:string", |
| 739 | "value":"URL:http:\/\/de.wikipedia.org" |
| 740 | }, |
| 741 | { |
| 742 | "@type":"koral:field", |
| 743 | "key":"corpusTitle", |
| 744 | "type":"type:text", |
| 745 | "value":"Wikipedia" |
| 746 | }, |
| 747 | { |
| 748 | "@type":"koral:field", |
| 749 | "key":"corpusEditor", |
| 750 | "type":"type:store", |
| 751 | "value":"wikipedia.org" |
| 752 | }, |
| 753 | { |
| 754 | "@type":"koral:field", |
| 755 | "key":"corpusSigle", |
| 756 | "type":"type:string", |
| 757 | "value":"WPD15" |
| 758 | } |
| 759 | ] |
| 760 | } |
| 761 | }; |
Akron | 0ad7cd2 | 2018-02-08 18:03:06 +0100 | [diff] [blame] | 762 | |
Nils Diewald | 4347ee9 | 2015-05-04 20:32:48 +0000 | [diff] [blame] | 763 | |
Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 764 | KorAP.API.getMatchInfo = function(match, callObj, cb) { |
Akron | 7f613e0 | 2016-11-07 02:50:44 +0100 | [diff] [blame] | 765 | console.dir(callObj); |
Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 766 | if (callObj["spans"] !== undefined && callObj["spans"] === true) { |
Akron | aa01dca | 2018-02-05 19:51:28 +0100 | [diff] [blame] | 767 | if (callObj["layer"] === "d") { |
| 768 | return cb({ "snippet": relSnippet }); |
| 769 | } |
| 770 | else { |
| 771 | return cb({ "snippet": treeSnippet }); |
| 772 | } |
Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 773 | } |
| 774 | else { |
| 775 | return cb({ "snippet": snippet }); |
| 776 | } |
| 777 | }; |
Akron | 0ad7cd2 | 2018-02-08 18:03:06 +0100 | [diff] [blame] | 778 | |
| 779 | KorAP.API.getTextInfo = function(doc, callObj, cb) { |
| 780 | return cb(meta); |
| 781 | }; |
Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 782 | }); |