blob: 9efe4c5496f60cfca965c1f924ab5f15399e7a5e [file] [log] [blame]
Nils Diewald32e30f02014-10-30 00:52:36 +00001#!/usr/bin/env perl
2# source ~/perl5/perlbrew/etc/bashrc
3# perlbrew switch perl-blead@korap
4use strict;
5use warnings;
6use Test::More;
7use Data::Dumper;
8use JSON::XS;
9
Nils Diewald6d565072014-10-30 23:20:58 +000010use Benchmark qw/:hireswallclock/;
11
12my $t = Benchmark->new;
13
Nils Diewald32e30f02014-10-30 00:52:36 +000014use utf8;
15use lib 'lib', '../lib';
16
17use File::Basename 'dirname';
18use File::Spec::Functions 'catdir';
19
20use_ok('KorAP::Document');
21
22# GOE/AGA/03828
23my $path = catdir(dirname(__FILE__), 'GOE/AGA/03828');
Nils Diewaldd681eab2014-11-01 01:18:25 +000024# my $path = '/home/ndiewald/Repositories/korap/KorAP-sandbox/KorAP-lucene-indexer/t/GOE/AGA/03828';
Nils Diewald32e30f02014-10-30 00:52:36 +000025
26ok(my $doc = KorAP::Document->new( path => $path . '/' ), 'Load Korap::Document');
27ok($doc->parse, 'Parse document');
28
29is($doc->text_sigle, 'GOE_AGA.03828', 'Correct text sigle');
30is($doc->doc_sigle, 'GOE_AGA', 'Correct document sigle');
31is($doc->corpus_sigle, 'GOE', 'Correct corpus sigle');
32
Nils Diewald90410c22014-11-03 21:04:05 +000033is($doc->title, 'Autobiographische Einzelheiten', 'Title');
34is($doc->pub_place, 'München', 'PubPlace');
35is($doc->pub_date, '19820000', 'Creation Date');
36ok(!$doc->sub_title, 'SubTitle');
Nils Diewalda96de622014-10-31 17:29:23 +000037is($doc->author, 'Goethe, Johann Wolfgang von', 'Author');
Nils Diewald90410c22014-11-03 21:04:05 +000038
39is($doc->publisher, 'Verlag C. H. Beck', 'Publisher');
40ok(!$doc->editor, 'Publisher');
41is($doc->text_type, 'Autobiographie', 'Correct Text Type');
42ok(!$doc->text_type_art, 'Correct Text Type Art');
43ok(!$doc->text_type_ref, 'Correct Text Type Ref');
44ok(!$doc->text_column, 'Correct Text Column');
45ok(!$doc->text_domain, 'Correct Text Domain');
46is($doc->creation_date, '18200000', 'Creation Date');
47is($doc->license, 'QAO-NC', 'License');
48is($doc->pages, '529-547', 'Pages');
49ok(!$doc->file_edition_statement, 'File Ed Statement');
50ok(!$doc->bibl_edition_statement, 'Bibl Ed Statement');
Nils Diewald32e30f02014-10-30 00:52:36 +000051is($doc->reference . "\n", <<'REF', 'Author');
52Goethe, Johann Wolfgang von: Autobiographische Einzelheiten, (Geschrieben bis 1832), In: Goethe, Johann Wolfgang von: Goethes Werke, Bd. 10, Autobiographische Schriften II, Hrsg.: Trunz, Erich. München: Verlag C. H. Beck, 1982, S. 529-547
53REF
Nils Diewald32e30f02014-10-30 00:52:36 +000054is($doc->language, 'de', 'Language');
Nils Diewald90410c22014-11-03 21:04:05 +000055
Nils Diewaldfeccbb12015-06-18 20:06:45 +000056is($doc->corpus_title, 'Goethe-Korpus', 'Correct Corpus title');
Nils Diewald90410c22014-11-03 21:04:05 +000057ok(!$doc->corpus_sub_title, 'Correct Corpus Sub title');
58is($doc->corpus_author, 'Goethe, Johann Wolfgang von', 'Correct Corpus author');
59is($doc->corpus_editor, 'Trunz, Erich', 'Correct Corpus editor');
60
61is($doc->doc_title, 'Goethe: Autobiographische Schriften II, (1817-1825, 1832)',
62 'Correct Doc title');
63ok(!$doc->doc_sub_title, 'Correct Doc Sub title');
64ok(!$doc->doc_author, 'Correct Doc author');
65ok(!$doc->doc_editor, 'Correct Doc editor');
66
Nils Diewald32e30f02014-10-30 00:52:36 +000067# Tokenization
68use_ok('KorAP::Tokenizer');
69
Nils Diewald90410c22014-11-03 21:04:05 +000070
Nils Diewald32e30f02014-10-30 00:52:36 +000071my ($token_base_foundry, $token_base_layer) = (qw/OpenNLP Tokens/);
72
73# Get tokenization
74my $tokens = KorAP::Tokenizer->new(
75 path => $doc->path,
76 doc => $doc,
77 foundry => $token_base_foundry,
78 layer => $token_base_layer,
79 name => 'tokens'
80);
81ok($tokens, 'Token Object is fine');
82ok($tokens->parse, 'Token parsing is fine');
83
84my $output = decode_json( $tokens->to_json );
85
Nils Diewald5cd84d02014-11-01 17:25:12 +000086is(substr($output->{data}->{text}, 0, 100), 'Autobiographische einzelheiten Selbstschilderung (1) immer tätiger, nach innen und außen fortwirkend', 'Primary Data');
87is($output->{data}->{name}, 'tokens', 'tokenName');
88is($output->{data}->{tokenSource}, 'opennlp#tokens', 'tokenSource');
Nils Diewald32e30f02014-10-30 00:52:36 +000089is($output->{version}, '0.02', 'version');
Nils Diewald5cd84d02014-11-01 17:25:12 +000090is($output->{data}->{foundries}, '', 'Foundries');
91is($output->{data}->{layerInfos}, '', 'layerInfos');
92is($output->{data}->{stream}->[0]->[3], 's:Autobiographische', 'data');
Nils Diewald32e30f02014-10-30 00:52:36 +000093
94is($output->{textSigle}, 'GOE_AGA.03828', 'Correct text sigle');
95is($output->{docSigle}, 'GOE_AGA', 'Correct document sigle');
96is($output->{corpusSigle}, 'GOE', 'Correct corpus sigle');
97
Nils Diewald90410c22014-11-03 21:04:05 +000098
Nils Diewald32e30f02014-10-30 00:52:36 +000099is($output->{author}, 'Goethe, Johann Wolfgang von', 'Author');
Nils Diewald90410c22014-11-03 21:04:05 +0000100is($output->{pubPlace}, 'München', 'PubPlace');
101is($output->{pubDate}, '19820000', 'Creation Date');
102is($output->{title}, 'Autobiographische Einzelheiten', 'Title');
103ok(!exists $output->{subTitle}, 'subTitle');
104
105is($output->{publisher}, 'Verlag C. H. Beck', 'Publisher');
106ok(!exists $output->{editor}, 'Editor');
107is($output->{textType}, 'Autobiographie', 'Correct Text Type');
108ok(!exists $output->{textTypeArt}, 'Correct Text Type');
109ok(!exists $output->{textTypeRef}, 'Correct Text Type');
110ok(!exists $output->{textColumn}, 'Correct Text Type');
111ok(!exists $output->{textDomain}, 'Correct Text Type');
112is($output->{creationDate}, '18200000', 'Creation Date');
113is($output->{license}, 'QAO-NC', 'License');
114is($output->{pages}, '529-547', 'Pages');
115ok(!exists $output->{fileEditionStatement}, 'Correct Text Type');
116ok(!exists $output->{biblEditionStatement}, 'Correct Text Type');
Nils Diewald32e30f02014-10-30 00:52:36 +0000117is($output->{reference} . "\n", <<'REF', 'Author');
118Goethe, Johann Wolfgang von: Autobiographische Einzelheiten, (Geschrieben bis 1832), In: Goethe, Johann Wolfgang von: Goethes Werke, Bd. 10, Autobiographische Schriften II, Hrsg.: Trunz, Erich. München: Verlag C. H. Beck, 1982, S. 529-547
119REF
Nils Diewald32e30f02014-10-30 00:52:36 +0000120is($output->{language}, 'de', 'Language');
Nils Diewald32e30f02014-10-30 00:52:36 +0000121
Nils Diewaldfeccbb12015-06-18 20:06:45 +0000122is($output->{corpusTitle}, 'Goethe-Korpus', 'Correct Corpus title');
Nils Diewald90410c22014-11-03 21:04:05 +0000123ok(!exists $output->{corpusSubTitle}, 'Correct Text Type');
124is($output->{corpusAuthor}, 'Goethe, Johann Wolfgang von', 'Correct Corpus title');
125is($output->{corpusEditor}, 'Trunz, Erich', 'Editor');
126
127is($output->{docTitle}, 'Goethe: Autobiographische Schriften II, (1817-1825, 1832)', 'Correct Corpus title');
128ok(!exists $output->{docSubTitle}, 'Correct Text Type');
129ok(!exists $output->{docAuthor}, 'Correct Text Type');
130ok(!exists $output->{docEditor}, 'Correct Text Type');
Nils Diewald32e30f02014-10-30 00:52:36 +0000131
132## Base
133$tokens->add('Base', 'Sentences');
134$tokens->add('Base', 'Paragraphs');
135
136$output = decode_json( $tokens->to_json );
137
Nils Diewald5cd84d02014-11-01 17:25:12 +0000138is($output->{data}->{foundries}, 'base base/paragraphs base/sentences', 'Foundries');
139is($output->{data}->{layerInfos}, 'base/s=spans', 'layerInfos');
140my $first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000141like($first_token, qr/s:Autobiographische/, 'data');
142like($first_token, qr/_0#0-17/, 'data');
Nils Diewald6d565072014-10-30 23:20:58 +0000143like($first_token, qr!<>:base/s:s#0-30\$<i>2<b>2!, 'data');
144like($first_token, qr!<>:base\/s:t#0-35199\$<i>5226<b>0!, 'data');
Nils Diewald32e30f02014-10-30 00:52:36 +0000145
146## OpenNLP
147$tokens->add('OpenNLP', 'Sentences');
148
149$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000150is($output->{data}->{foundries},
Nils Diewald32e30f02014-10-30 00:52:36 +0000151 'base base/paragraphs base/sentences opennlp opennlp/sentences',
152 'Foundries');
Nils Diewald5cd84d02014-11-01 17:25:12 +0000153is($output->{data}->{layerInfos}, 'base/s=spans opennlp/s=spans', 'layerInfos');
154$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000155like($first_token, qr!<>:opennlp/s:s#0-254\$<i>32!, 'data');
156
157$tokens->add('OpenNLP', 'Morpho');
158$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000159is($output->{data}->{foundries},
Nils Diewald32e30f02014-10-30 00:52:36 +0000160 'base base/paragraphs base/sentences opennlp opennlp/morpho opennlp/sentences',
161 'Foundries');
Nils Diewald5cd84d02014-11-01 17:25:12 +0000162is($output->{data}->{layerInfos}, 'base/s=spans opennlp/p=tokens opennlp/s=spans', 'layerInfos');
163$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000164like($first_token, qr!opennlp/p:ADJA!, 'data');
165
166## Treetagger
167$tokens->add('TreeTagger', 'Sentences');
168$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000169is($output->{data}->{foundries},
Nils Diewald32e30f02014-10-30 00:52:36 +0000170 'base base/paragraphs base/sentences opennlp opennlp/morpho opennlp/sentences treetagger treetagger/sentences',
171 'Foundries');
Nils Diewald5cd84d02014-11-01 17:25:12 +0000172is($output->{data}->{layerInfos}, 'base/s=spans opennlp/p=tokens opennlp/s=spans tt/s=spans', 'layerInfos');
173$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6d565072014-10-30 23:20:58 +0000174like($first_token, qr!<>:tt/s:s#0-179\$<i>21<b>2!, 'data');
Nils Diewald32e30f02014-10-30 00:52:36 +0000175
176$tokens->add('TreeTagger', 'Morpho');
177$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000178is($output->{data}->{foundries},
Nils Diewald32e30f02014-10-30 00:52:36 +0000179 'base base/paragraphs base/sentences opennlp opennlp/morpho opennlp/sentences treetagger treetagger/morpho treetagger/sentences',
180 'Foundries');
Nils Diewald5cd84d02014-11-01 17:25:12 +0000181is($output->{data}->{layerInfos}, 'base/s=spans opennlp/p=tokens opennlp/s=spans tt/l=tokens tt/p=tokens tt/s=spans', 'layerInfos');
182$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000183like($first_token, qr!tt/l:autobiographisch\$<b>165!, 'data');
184like($first_token, qr!tt/p:ADJA\$<b>165!, 'data');
185like($first_token, qr!tt/l:Autobiographische\$<b>89!, 'data');
186like($first_token, qr!tt/p:NN\$<b>89!, 'data');
187
Nils Diewald32e30f02014-10-30 00:52:36 +0000188## CoreNLP
189$tokens->add('CoreNLP', 'NamedEntities');
190$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000191is($output->{data}->{foundries},
Nils Diewald32e30f02014-10-30 00:52:36 +0000192 'base base/paragraphs base/sentences corenlp corenlp/namedentities opennlp opennlp/morpho opennlp/sentences treetagger treetagger/morpho treetagger/sentences',
193 'Foundries');
Nils Diewald5cd84d02014-11-01 17:25:12 +0000194is($output->{data}->{layerInfos}, 'base/s=spans corenlp/ne=tokens opennlp/p=tokens opennlp/s=spans tt/l=tokens tt/p=tokens tt/s=spans', 'layerInfos');
Nils Diewald32e30f02014-10-30 00:52:36 +0000195
196diag "Missing test for NamedEntities";
197
198# Problematic:
Nils Diewald5cd84d02014-11-01 17:25:12 +0000199# diag Dumper $output->{data}->{stream}->[180];
200# diag Dumper $output->{data}->{stream}->[341];
Nils Diewald32e30f02014-10-30 00:52:36 +0000201
202$tokens->add('CoreNLP', 'Sentences');
203$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000204is($output->{data}->{foundries},
Nils Diewald32e30f02014-10-30 00:52:36 +0000205 'base base/paragraphs base/sentences corenlp corenlp/namedentities corenlp/sentences opennlp opennlp/morpho opennlp/sentences treetagger treetagger/morpho treetagger/sentences',
206 'Foundries');
Nils Diewald5cd84d02014-11-01 17:25:12 +0000207is($output->{data}->{layerInfos}, 'base/s=spans corenlp/ne=tokens corenlp/s=spans opennlp/p=tokens opennlp/s=spans tt/l=tokens tt/p=tokens tt/s=spans', 'layerInfos');
208$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000209like($first_token, qr!<>:corenlp/s:s#0-254\$<i>32!, 'data');
210
Nils Diewald32e30f02014-10-30 00:52:36 +0000211$tokens->add('CoreNLP', 'Morpho');
212$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000213like($output->{data}->{foundries}, qr!corenlp/morpho!, 'Foundries');
214like($output->{data}->{layerInfos}, qr!corenlp/p=tokens!, 'layerInfos');
215$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000216like($first_token, qr!corenlp/p:ADJA!, 'data');
217
Nils Diewald6d565072014-10-30 23:20:58 +0000218$tokens->add('CoreNLP', 'Constituency');
219$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000220like($output->{data}->{foundries}, qr!corenlp/constituency!, 'Foundries');
221like($output->{data}->{layerInfos}, qr!corenlp/c=spans!, 'layerInfos');
222$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6c44f422014-10-31 02:16:14 +0000223like($first_token, qr!<>:corenlp/c:NP#0-17\$<i>1<b>6!, 'data');
224like($first_token, qr!<>:corenlp/c:CNP#0-17\$<i>1<b>7!, 'data');
225like($first_token, qr!<>:corenlp/c:NP#0-17\$<i>1<b>8!, 'data');
226like($first_token, qr!<>:corenlp/c:AP#0-17\$<i>1<b>9!, 'data');
227like($first_token, qr!<>:corenlp/c:PP#0-50\$<i>3<b>4!, 'data');
228like($first_token, qr!<>:corenlp/c:S#0-50\$<i>3<b>5!, 'data');
229like($first_token, qr!<>:corenlp/c:PP#0-58\$<i>5<b>2!, 'data');
230like($first_token, qr!<>:corenlp/c:S#0-58\$<i>5<b>3!, 'data');
231like($first_token, qr!<>:corenlp/c:ROOT#0-254\$<i>32<b>0!, 'data');
232like($first_token, qr!<>:corenlp/c:S#0-254\$<i>32<b>1!, 'data');
Nils Diewald32e30f02014-10-30 00:52:36 +0000233
234## Glemm
235$tokens->add('Glemm', 'Morpho');
236$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000237like($output->{data}->{foundries}, qr!glemm/morpho!, 'Foundries');
238like($output->{data}->{layerInfos}, qr!glemm/l=tokens!, 'layerInfos');
239$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000240like($first_token, qr!glemm/l:__autobiographisch!, 'data');
241like($first_token, qr!glemm/l:\+_Auto!, 'data');
242like($first_token, qr!glemm/l:\+_biographisch!, 'data');
243like($first_token, qr!glemm/l:\+\+Biograph!, 'data');
244like($first_token, qr!glemm/l:\+\+-isch!, 'data');
245
Nils Diewald32e30f02014-10-30 00:52:36 +0000246## Connexor
247$tokens->add('Connexor', 'Sentences');
248$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000249like($output->{data}->{foundries}, qr!connexor/sentences!, 'Foundries');
250like($output->{data}->{layerInfos}, qr!cnx/s=spans!, 'layerInfos');
251$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6a2a14b2015-06-17 20:34:24 +0000252like($first_token, qr!<>:cnx/s:s#0-179\$<i>21<b>0!, 'data');
Nils Diewald32e30f02014-10-30 00:52:36 +0000253
254$tokens->add('Connexor', 'Morpho');
255$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000256like($output->{data}->{foundries}, qr!connexor/morpho!, 'Foundries');
257like($output->{data}->{layerInfos}, qr!cnx/p=tokens!, 'layerInfos');
258like($output->{data}->{layerInfos}, qr!cnx/l=tokens!, 'layerInfos');
259like($output->{data}->{layerInfos}, qr!cnx/m=tokens!, 'layerInfos');
260$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000261like($first_token, qr!cnx/l:autobiografisch!, 'data');
262like($first_token, qr!cnx/p:A!, 'data');
263
264$tokens->add('Connexor', 'Phrase');
265$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000266like($output->{data}->{foundries}, qr!connexor/phrase!, 'Foundries');
267like($output->{data}->{layerInfos}, qr!cnx/c=spans!, 'layerInfos');
268$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000269like($first_token, qr!<>:cnx/c:np#0-30\$<i>2!, 'data');
270
Nils Diewald32e30f02014-10-30 00:52:36 +0000271$tokens->add('Connexor', 'Syntax');
272$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000273like($output->{data}->{foundries}, qr!connexor/syntax!, 'Foundries');
274like($output->{data}->{layerInfos}, qr!cnx/syn=tokens!, 'layerInfos');
275$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000276like($first_token, qr!cnx/syn:\@PREMOD!, 'data');
277
278## Mate
279$tokens->add('Mate', 'Morpho');
280$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000281like($output->{data}->{foundries}, qr!mate/morpho!, 'Foundries');
282like($output->{data}->{layerInfos}, qr!mate/p=tokens!, 'layerInfos');
283like($output->{data}->{layerInfos}, qr!mate/l=tokens!, 'layerInfos');
284like($output->{data}->{layerInfos}, qr!mate/m=tokens!, 'layerInfos');
285$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6d565072014-10-30 23:20:58 +0000286like($first_token, qr!mate/l:autobiographisch!, 'data');
287like($first_token, qr!mate/p:NN!, 'data');
288like($first_token, qr!mate/m:case:nom!, 'data');
289like($first_token, qr!mate/m:number:pl!, 'data');
290like($first_token, qr!mate/m:gender:\*!, 'data');
291
292
Nils Diewald6c44f422014-10-31 02:16:14 +0000293diag "No test for mate dependency";
Nils Diewald6d565072014-10-30 23:20:58 +0000294
295## XIP
296$tokens->add('XIP', 'Sentences');
297$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000298like($output->{data}->{foundries}, qr!xip/sentences!, 'Foundries');
299like($output->{data}->{layerInfos}, qr!xip/s=spans!, 'layerInfos');
300$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6d565072014-10-30 23:20:58 +0000301like($first_token, qr!<>:xip/s:s#0-179\$<i>21!, 'data');
302
303$tokens->add('XIP', 'Morpho');
304$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000305like($output->{data}->{foundries}, qr!xip/morpho!, 'Foundries');
306like($output->{data}->{layerInfos}, qr!xip/l=tokens!, 'layerInfos');
307like($output->{data}->{layerInfos}, qr!xip/p=tokens!, 'layerInfos');
308$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6d565072014-10-30 23:20:58 +0000309like($first_token, qr!<>:xip/s:s#0-179\$<i>21!, 'data');
310
311
Nils Diewald6d565072014-10-30 23:20:58 +0000312$tokens->add('XIP', 'Constituency');
313$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000314like($output->{data}->{foundries}, qr!xip/constituency!, 'Foundries');
315like($output->{data}->{layerInfos}, qr!xip/c=spans!, 'layerInfos');
316$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6d565072014-10-30 23:20:58 +0000317like($first_token, qr!<>:xip/c:NP#0-17\$<i>1<b>1!, 'data');
318like($first_token, qr!<>:xip/c:AP#0-17\$<i>1<b>2!, 'data');
319like($first_token, qr!<>:xip/c:ADJ#0-17\$<i>1<b>3!, 'data');
320like($first_token, qr!<>:xip/c:TOP#0-179\$<i>21<b>0!, 'data');
Nils Diewald32e30f02014-10-30 00:52:36 +0000321
Nils Diewald6c44f422014-10-31 02:16:14 +0000322diag "No test for xip dependency";
Nils Diewald32e30f02014-10-30 00:52:36 +0000323
Nils Diewald5cd84d02014-11-01 17:25:12 +0000324# diag Dumper $output->{data}->{stream}->[0];
Nils Diewald6c44f422014-10-31 02:16:14 +0000325
326# print timestr(timediff(Benchmark->new, $t));
Nils Diewald32e30f02014-10-30 00:52:36 +0000327
Nils Diewald32e30f02014-10-30 00:52:36 +0000328done_testing;
329__END__