Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 1 | use strict; |
| 2 | use warnings; |
| 3 | use Test::More; |
| 4 | use Data::Dumper; |
| 5 | use JSON::XS; |
Akron | a5920b1 | 2016-06-29 18:51:21 +0200 | [diff] [blame] | 6 | use Log::Log4perl; |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 7 | |
Akron | fab17d3 | 2020-07-31 14:38:29 +0200 | [diff] [blame] | 8 | if ($ENV{SKIP_REAL}) { |
| 9 | plan skip_all => 'Skip real tests'; |
| 10 | }; |
| 11 | |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 12 | use utf8; |
| 13 | use lib 'lib', '../lib'; |
| 14 | |
| 15 | use File::Basename 'dirname'; |
| 16 | use File::Spec::Functions 'catdir'; |
| 17 | |
Akron | a5920b1 | 2016-06-29 18:51:21 +0200 | [diff] [blame] | 18 | # Initialize log4perl object |
| 19 | Log::Log4perl->init({ |
| 20 | 'log4perl.rootLogger' => 'ERROR, STDERR', |
| 21 | 'log4perl.appender.STDERR' => 'Log::Log4perl::Appender::ScreenColoredLevels', |
| 22 | 'log4perl.appender.STDERR.layout' => 'PatternLayout', |
| 23 | 'log4perl.appender.STDERR.layout.ConversionPattern' => '[%r] %F %L %c - %m%n' |
| 24 | }); |
| 25 | |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 26 | use_ok('KorAP::XML::Krill'); |
| 27 | |
Akron | 414ec95 | 2020-08-03 15:48:43 +0200 | [diff] [blame^] | 28 | my $path = catdir(dirname(__FILE__), 'corpus','REI','BNG','00128'); |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 29 | |
| 30 | ok(my $doc = KorAP::XML::Krill->new( path => $path . '/' ), 'Load Korap::Document'); |
| 31 | ok($doc->parse, 'Parse document'); |
| 32 | |
| 33 | is($doc->text_sigle, 'REI/BNG/00128', 'Correct text sigle'); |
| 34 | is($doc->doc_sigle, 'REI/BNG', 'Correct document sigle'); |
| 35 | is($doc->corpus_sigle, 'REI', 'Correct corpus sigle'); |
| 36 | |
| 37 | my $meta = $doc->meta; |
Akron | 5eb3aa0 | 2019-01-25 18:30:47 +0100 | [diff] [blame] | 38 | is($meta->{T_title}, 'Friedensgutachten der führenden Friedensforschungsinstitute', 'Title'); |
| 39 | is($meta->{T_sub_title}, 'Rede im Deutschen Bundestag am 14.06.2002', 'SubTitle'); |
| 40 | is($meta->{T_author}, 'Nachtwei, Winfried', 'Author'); |
| 41 | ok(!$meta->{A_editor}, 'Editor'); |
| 42 | is($meta->{S_pub_place}, 'Berlin', 'PubPlace'); |
| 43 | ok(!$meta->{A_publisher}, 'Publisher'); |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 44 | |
Akron | 5eb3aa0 | 2019-01-25 18:30:47 +0100 | [diff] [blame] | 45 | ok(!$meta->{S_text_type}, 'No Text Type'); |
| 46 | ok(!$meta->{S_text_type_art}, 'No Text Type Art'); |
| 47 | ok(!$meta->{S_text_type_ref}, 'No Text Type Ref'); |
| 48 | ok(!$meta->{S_text_domain}, 'No Text Domain'); |
| 49 | ok(!$meta->{S_text_column}, 'No Text Column'); |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 50 | |
Akron | 5eb3aa0 | 2019-01-25 18:30:47 +0100 | [diff] [blame] | 51 | is($meta->{K_text_class}->[0], 'politik', 'Correct Text Class'); |
| 52 | is($meta->{K_text_class}->[1], 'inland', 'Correct Text Class'); |
| 53 | ok(!$meta->{K_text_class}->[2], 'Correct Text Class'); |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 54 | |
Akron | 5eb3aa0 | 2019-01-25 18:30:47 +0100 | [diff] [blame] | 55 | is($meta->{D_pub_date}, '20020614', 'Creation date'); |
| 56 | is($meta->{D_creation_date}, '20020614', 'Creation date'); |
| 57 | is($meta->{S_availability}, 'CC-BY-SA', 'License'); |
| 58 | ok(!$meta->{A_pages}, 'Pages'); |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 59 | |
Akron | 5eb3aa0 | 2019-01-25 18:30:47 +0100 | [diff] [blame] | 60 | ok(!$meta->{A_file_edition_statement}, 'File Statement'); |
| 61 | ok(!$meta->{A_bibl_edition_statement}, 'Bibl Statement'); |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 62 | |
Akron | 5eb3aa0 | 2019-01-25 18:30:47 +0100 | [diff] [blame] | 63 | is($meta->{A_reference} . "\n", <<'REF', 'Reference'); |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 64 | Nachtwei, Winfried: Friedensgutachten der führenden Friedensforschungsinstitute. Rede im Deutschen Bundestag am 14.06.2002, Hrsg: Bundestagsfraktion Bündnis 90/DIE GRÜNEN [Ausführliche Zitierung nicht verfügbar] |
| 65 | REF |
Akron | 5eb3aa0 | 2019-01-25 18:30:47 +0100 | [diff] [blame] | 66 | is($meta->{S_language}, 'de', 'Language'); |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 67 | |
Akron | 5eb3aa0 | 2019-01-25 18:30:47 +0100 | [diff] [blame] | 68 | is($meta->{T_corpus_title}, 'Reden und Interviews', 'Correct Corpus title'); |
| 69 | ok(!$meta->{T_corpus_sub_title}, 'Correct Corpus sub title'); |
| 70 | ok(!$meta->{T_corpus_author}, 'Correct Corpus author'); |
| 71 | ok(!$meta->{A_corpus_editor}, 'Correct Corpus editor'); |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 72 | |
Akron | 5eb3aa0 | 2019-01-25 18:30:47 +0100 | [diff] [blame] | 73 | is($meta->{T_doc_title}, 'Reden der Bundestagsfraktion Bündnis 90/DIE GRÜNEN, (2002-2006)', 'Correct Doc title'); |
| 74 | ok(!$meta->{T_doc_sub_title}, 'Correct Doc sub title'); |
| 75 | ok(!$meta->{T_doc_author}, 'Correct Doc author'); |
| 76 | ok(!$meta->{A_doc_editor}, 'Correct doc editor'); |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 77 | |
| 78 | # Tokenization |
| 79 | use_ok('KorAP::XML::Tokenizer'); |
| 80 | |
| 81 | my ($token_base_foundry, $token_base_layer) = (qw/Base tokens_conservative/); |
| 82 | |
| 83 | # Get tokenization |
| 84 | my $tokens = KorAP::XML::Tokenizer->new( |
| 85 | path => $doc->path, |
| 86 | doc => $doc, |
| 87 | foundry => $token_base_foundry, |
| 88 | layer => $token_base_layer, |
| 89 | name => 'tokens' |
| 90 | ); |
| 91 | |
| 92 | ok($tokens, 'Token Object is fine'); |
| 93 | ok($tokens->parse, 'Token parsing is fine'); |
| 94 | |
| 95 | my $output = decode_json( $tokens->to_json ); |
| 96 | |
| 97 | is(substr($output->{data}->{text}, 0, 100), 'Winfried Nachtwei, Friedensgutachten der führenden Friedensforschungsinstitute 14. Juni 2002 Vizeprä', 'Primary Data'); |
| 98 | |
| 99 | is($output->{data}->{name}, 'tokens', 'tokenName'); |
| 100 | is($output->{data}->{tokenSource}, 'base#tokens_conservative', 'tokenSource'); |
| 101 | is($output->{version}, '0.03', 'version'); |
| 102 | |
| 103 | is($output->{data}->{foundries}, '', 'Foundries'); |
| 104 | is($output->{data}->{layerInfos}, '', 'layerInfos'); |
| 105 | is($output->{data}->{stream}->[0]->[4], 's:Winfried', 'data'); |
| 106 | |
| 107 | is($output->{textSigle}, 'REI/BNG/00128', 'Correct text sigle'); |
| 108 | is($output->{docSigle}, 'REI/BNG', 'Correct document sigle'); |
| 109 | is($output->{corpusSigle}, 'REI', 'Correct corpus sigle'); |
| 110 | |
| 111 | is($output->{title}, 'Friedensgutachten der führenden Friedensforschungsinstitute', 'Title'); |
| 112 | is($output->{subTitle}, 'Rede im Deutschen Bundestag am 14.06.2002', 'Correct SubTitle'); |
| 113 | is($output->{author}, 'Nachtwei, Winfried', 'Author'); |
| 114 | ok(!exists $output->{editor}, 'Publisher'); |
| 115 | |
| 116 | is($output->{pubPlace}, 'Berlin', 'PubPlace'); |
| 117 | ok(!exists $output->{publisher}, 'Publisher'); |
| 118 | |
| 119 | ok(!exists $output->{textType}, 'Correct Text Type'); |
| 120 | ok(!exists $output->{textTypeArt}, 'Correct Text Type Art'); |
| 121 | ok(!exists $output->{textTypeRef}, 'Correct Text Type Ref'); |
| 122 | ok(!exists $output->{textDomain}, 'Correct Text Domain'); |
| 123 | |
| 124 | is($output->{creationDate}, '20020614', 'Creation date'); |
| 125 | is($output->{availability}, 'CC-BY-SA', 'License'); |
| 126 | |
| 127 | ok(!exists $output->{pages}, 'Pages'); |
| 128 | ok(!exists $output->{fileEditionStatement}, 'File Statement'); |
| 129 | ok(!exists $output->{biblEditionStatement}, 'Bibl Statement'); |
| 130 | |
| 131 | is($output->{reference} . "\n", <<'REF', 'Reference'); |
| 132 | Nachtwei, Winfried: Friedensgutachten der führenden Friedensforschungsinstitute. Rede im Deutschen Bundestag am 14.06.2002, Hrsg: Bundestagsfraktion Bündnis 90/DIE GRÜNEN [Ausführliche Zitierung nicht verfügbar] |
| 133 | REF |
| 134 | is($output->{language}, 'de', 'Language'); |
| 135 | |
| 136 | is($output->{corpusTitle}, 'Reden und Interviews', 'Correct Corpus title'); |
| 137 | ok(!exists $output->{corpusSubTitle}, 'Correct Corpus sub title'); |
| 138 | ok(!exists $output->{corpusAuthor}, 'Correct Corpus author'); |
| 139 | ok(!exists $output->{corpusEditor}, 'Correct Corpus editor'); |
| 140 | |
| 141 | is($output->{docTitle}, 'Reden der Bundestagsfraktion Bündnis 90/DIE GRÜNEN, (2002-2006)', 'Correct Doc title'); |
| 142 | ok(!exists $output->{docSubTitle}, 'Correct Doc sub title'); |
| 143 | ok(!exists $output->{docAuthor}, 'Correct Doc author'); |
| 144 | ok(!exists $output->{docEditor}, 'Correct doc editor'); |
| 145 | |
| 146 | ## Base |
| 147 | $tokens->add('Base', 'Sentences'); |
| 148 | $tokens->add('Base', 'Paragraphs'); |
| 149 | |
| 150 | $output = decode_json( $tokens->to_json ); |
| 151 | |
| 152 | is($output->{data}->{foundries}, 'base base/paragraphs base/sentences', 'Foundries'); |
| 153 | is($output->{data}->{layerInfos}, 'base/s=spans', 'layerInfos'); |
| 154 | my $first_token = join('||', @{$output->{data}->{stream}->[0]}); |
| 155 | like($first_token, qr/s:Winfried/, 'data'); |
| 156 | like($first_token, qr/_0\$<i>0<i>8/, 'data'); |
| 157 | |
| 158 | |
Akron | a5920b1 | 2016-06-29 18:51:21 +0200 | [diff] [blame] | 159 | # REI/RBR/00610 |
Akron | 414ec95 | 2020-08-03 15:48:43 +0200 | [diff] [blame^] | 160 | $path = catdir(dirname(__FILE__), 'corpus','REI','RBR','00610'); |
Akron | a5920b1 | 2016-06-29 18:51:21 +0200 | [diff] [blame] | 161 | |
| 162 | ok($doc = KorAP::XML::Krill->new( path => $path . '/' ), 'Load Korap::Document'); |
| 163 | ok($doc->parse, 'Parse document'); |
| 164 | |
| 165 | # Get tokenization |
| 166 | $tokens = KorAP::XML::Tokenizer->new( |
| 167 | path => $doc->path, |
| 168 | doc => $doc, |
| 169 | foundry => $token_base_foundry, |
| 170 | layer => $token_base_layer, |
| 171 | name => 'tokens' |
| 172 | ); |
| 173 | |
| 174 | ok($tokens, 'Token Object is fine'); |
| 175 | ok($tokens->parse, 'Token parsing is fine'); |
| 176 | |
| 177 | # Add annotations |
| 178 | $tokens->add('Base', 'Sentences'); |
| 179 | $tokens->add('Base', 'Paragraphs'); |
| 180 | |
| 181 | $tokens->add('CoreNLP', 'Constituency'); |
| 182 | $tokens->add('CoreNLP', 'Morpho'); |
| 183 | $tokens->add('CoreNLP', 'Sentences'); |
| 184 | |
| 185 | $tokens->add('Malt', 'Dependency'); |
| 186 | |
| 187 | $tokens->add('OpenNLP', 'Morpho'); |
| 188 | $tokens->add('OpenNLP', 'Sentences'); |
| 189 | |
| 190 | $tokens->add('DeReKo', 'Structure'); |
| 191 | |
| 192 | $tokens->add('TreeTagger', 'Morpho'); |
| 193 | $tokens->add('TreeTagger', 'Sentences'); |
| 194 | |
| 195 | $output = decode_json( $tokens->to_json ); |
| 196 | |
| 197 | my $first = $output->{data}->{stream}->[0]; |
| 198 | is('-:base/paragraphs$<i>31', $first->[0]); |
| 199 | is('-:base/sentences$<i>168', $first->[1]); |
| 200 | is('-:corenlp/sentences$<i>175', $first->[2]); |
| 201 | is('-:opennlp/sentences$<i>169', $first->[3]); |
| 202 | is('-:tokens$<i>2641', $first->[4]); |
| 203 | is('-:tt/sentences$<i>196', $first->[5]); |
| 204 | is('<:malt/d:PP$<b>32<i>4', $first->[6]); |
| 205 | is('<>:corenlp/c:ROOT$<b>64<i>0<i>48<i>7<b>0', $first->[7]); |
| 206 | is('<>:corenlp/s:s$<b>64<i>0<i>48<i>7<b>0', $first->[8]); |
| 207 | is('<>:opennlp/s:s$<b>64<i>0<i>48<i>7<b>0', $first->[9]); |
| 208 | is('<>:tt/s:s$<b>64<i>0<i>48<i>7<b>0', $first->[10]); |
| 209 | is('<>:corenlp/c:S$<b>64<i>0<i>48<i>7<b>1', $first->[11]); |
| 210 | is('<>:dereko/s:front$<b>64<i>0<i>91<i>11<b>1', $first->[12]); |
| 211 | is('<>:base/s:s$<b>64<i>0<i>91<i>11<b>2', $first->[13]); |
| 212 | is('<>:dereko/s:titlePage$<b>64<i>0<i>91<i>11<b>2<s>1', $first->[14]); |
| 213 | is('<>:dereko/s:docTitle$<b>64<i>0<i>91<i>11<b>3', $first->[15]); |
| 214 | is('<>:dereko/s:titlePart$<b>64<i>0<i>91<i>11<b>4<s>2', $first->[16]); |
| 215 | is('<>:dereko/s:s$<b>64<i>0<i>91<i>11<b>5', $first->[17]); |
Akron | dec4312 | 2020-03-03 11:22:25 +0100 | [diff] [blame] | 216 | is('<>:base/s:t$<b>64<i>0<i>17859<i>2641<b>0', $first->[18]); |
Akron | a5920b1 | 2016-06-29 18:51:21 +0200 | [diff] [blame] | 217 | is('>:malt/d:ROOT$<b>33<i>0<i>48<i>0<i>7', $first->[19]); |
| 218 | is('<:malt/d:PP$<b>32<i>1', $first->[20]); |
| 219 | is('<:malt/d:ROOT$<b>34<i>0<i>48<i>7<i>0', $first->[21]); |
| 220 | is('@:dereko/s:id:rbr.00610-0-titlepage$<b>17<s>1<i>11', $first->[22]); |
| 221 | is('@:dereko/s:type:unspecified$<b>17<s>2<i>11', $first->[23]); |
| 222 | is('_0$<i>0<i>4', $first->[24]); |
| 223 | is('corenlp/p:NN', $first->[25]); |
| 224 | is('i:rede', $first->[26]); |
| 225 | is('opennlp/p:NN', $first->[27]); |
| 226 | is('s:Rede', $first->[28]); |
Akron | 28dc17f | 2018-02-01 15:31:41 +0100 | [diff] [blame] | 227 | is('tt/l:Rede$<b>129<b>253', $first->[29]); |
Akron | a5920b1 | 2016-06-29 18:51:21 +0200 | [diff] [blame] | 228 | is('tt/p:NN$<b>129<b>253', $first->[30]); |
| 229 | |
| 230 | my $last = $output->{data}->{stream}->[-1]; |
| 231 | |
Akron | b62d92a | 2020-03-01 16:32:00 +0100 | [diff] [blame] | 232 | # Milestones behind the final token are no longer indexed |
| 233 | # is('<>:dereko/s:text$<b>65<i>17859<i>17859<i>2640<b>0', $last->[0]); |
| 234 | # is('<>:dereko/s:back$<b>65<i>17859<i>17859<i>2640<b>1', $last->[1]); |
| 235 | is('>:malt/d:APP$<b>32<i>2639', $last->[0]); |
| 236 | is('_2640$<i>17851<i>17859', $last->[1]); |
| 237 | is('corenlp/p:NE', $last->[2]); |
| 238 | is("i:schr\x{f6}der", $last->[3]); |
| 239 | is('opennlp/p:NE', $last->[4]); |
| 240 | is("s:Schr\x{f6}der", $last->[5]); |
| 241 | is("tt/l:Schr\x{f6}der", $last->[6]); |
| 242 | is('tt/p:NE', $last->[7]); |
Akron | a5920b1 | 2016-06-29 18:51:21 +0200 | [diff] [blame] | 243 | |
| 244 | |
| 245 | # REI/BNG/00071 |
Akron | 414ec95 | 2020-08-03 15:48:43 +0200 | [diff] [blame^] | 246 | $path = catdir(dirname(__FILE__), 'corpus','REI','BNG','00071'); |
Akron | a5920b1 | 2016-06-29 18:51:21 +0200 | [diff] [blame] | 247 | |
| 248 | ok($doc = KorAP::XML::Krill->new( path => $path . '/' ), 'Load Korap::Document'); |
| 249 | ok($doc->parse, 'Parse document'); |
| 250 | |
| 251 | # Get tokenization |
| 252 | $tokens = KorAP::XML::Tokenizer->new( |
| 253 | path => $doc->path, |
| 254 | doc => $doc, |
| 255 | foundry => $token_base_foundry, |
| 256 | layer => $token_base_layer, |
| 257 | name => 'tokens' |
| 258 | ); |
| 259 | |
| 260 | ok($tokens, 'Token Object is fine'); |
| 261 | ok($tokens->parse, 'Token parsing is fine'); |
| 262 | |
| 263 | # Add annotations |
| 264 | $tokens->add('Base', 'Sentences'); |
| 265 | $tokens->add('Base', 'Paragraphs'); |
| 266 | |
| 267 | $tokens->add('CoreNLP', 'Constituency'); |
| 268 | $tokens->add('CoreNLP', 'Morpho'); |
| 269 | $tokens->add('CoreNLP', 'Sentences'); |
| 270 | |
| 271 | $tokens->add('Malt', 'Dependency'); |
| 272 | |
| 273 | $tokens->add('OpenNLP', 'Morpho'); |
| 274 | $tokens->add('OpenNLP', 'Sentences'); |
| 275 | |
| 276 | $tokens->add('DeReKo', 'Structure'); |
| 277 | |
| 278 | $tokens->add('TreeTagger', 'Morpho'); |
| 279 | $tokens->add('TreeTagger', 'Sentences'); |
| 280 | |
| 281 | $output = decode_json( $tokens->to_json ); |
| 282 | |
| 283 | $first = $output->{data}->{stream}->[0]; |
| 284 | |
| 285 | is('-:base/paragraphs$<i>41', $first->[0]); |
| 286 | is('-:base/sentences$<i>73', $first->[1]); |
| 287 | is('-:corenlp/sentences$<i>69', $first->[2]); |
| 288 | is('-:opennlp/sentences$<i>65', $first->[3]); |
| 289 | is('-:tokens$<i>1009', $first->[4]); |
Akron | b62d92a | 2020-03-01 16:32:00 +0100 | [diff] [blame] | 290 | is('-:tt/sentences$<i>94', $first->[5]); |
Akron | a5920b1 | 2016-06-29 18:51:21 +0200 | [diff] [blame] | 291 | is('<:malt/d:APP$<b>32<i>1', $first->[6]); |
| 292 | is('<>:corenlp/c:MPN$<b>64<i>0<i>16<i>2<b>3', $first->[7]); |
| 293 | is('<>:base/s:s$<b>64<i>0<i>48<i>5<b>2', $first->[8]); |
| 294 | is('<>:dereko/s:titlePart$<b>64<i>0<i>48<i>5<b>4<s>2', $first->[9]); |
| 295 | is('<>:dereko/s:s$<b>64<i>0<i>48<i>5<b>5', $first->[10]); |
| 296 | is('<>:corenlp/c:ROOT$<b>64<i>0<i>51<i>6<b>0', $first->[11]); |
| 297 | is('<>:corenlp/s:s$<b>64<i>0<i>51<i>6<b>0', $first->[12]); |
| 298 | is('<>:tt/s:s$<b>64<i>0<i>51<i>6<b>0', $first->[13]); |
| 299 | is('<>:corenlp/c:NUR$<b>64<i>0<i>51<i>6<b>1', $first->[14]); |
| 300 | is('<>:corenlp/c:NP$<b>64<i>0<i>50<i>6<b>2', $first->[15]); |
| 301 | is('<>:dereko/s:front$<b>64<i>0<i>61<i>8<b>1', $first->[16]); |
| 302 | is('<>:dereko/s:titlePage$<b>64<i>0<i>61<i>8<b>2<s>1', $first->[17]); |
| 303 | is('<>:dereko/s:docTitle$<b>64<i>0<i>61<i>8<b>3', $first->[18]); |
| 304 | is('<>:opennlp/s:s$<b>64<i>0<i>173<i>24<b>0', $first->[19]); |
Akron | dec4312 | 2020-03-03 11:22:25 +0100 | [diff] [blame] | 305 | is('<>:base/s:t$<b>64<i>0<i>7008<i>1009<b>0', $first->[20]); |
| 306 | is('<>:dereko/s:text$<b>64<i>0<i>7008<i>1009<b>0', $first->[21]); |
Akron | a5920b1 | 2016-06-29 18:51:21 +0200 | [diff] [blame] | 307 | is('>:malt/d:GMOD$<b>32<i>3', $first->[22]); |
| 308 | is('<:malt/d:ROOT$<b>34<i>0<i>51<i>6<i>3', $first->[23]); |
| 309 | is('@:dereko/s:id:bng.00071-0-titlepage$<b>17<s>1<i>8', $first->[24]); |
| 310 | is('@:dereko/s:type:unspecified$<b>17<s>2<i>5', $first->[25]); |
| 311 | is('_0$<i>0<i>9', $first->[26]); |
| 312 | is('corenlp/p:NE', $first->[27]); |
| 313 | is('i:christine', $first->[28]); |
| 314 | is('opennlp/p:NE', $first->[29]); |
| 315 | is('s:Christine', $first->[30]); |
Akron | 0426176 | 2018-01-29 20:16:39 +0100 | [diff] [blame] | 316 | is('tt/l:Christine', $first->[31]); |
Akron | 28dc17f | 2018-02-01 15:31:41 +0100 | [diff] [blame] | 317 | is('tt/p:NE', $first->[32]); |
Akron | a5920b1 | 2016-06-29 18:51:21 +0200 | [diff] [blame] | 318 | |
| 319 | $last = $output->{data}->{stream}->[-1]; |
Akron | dec4312 | 2020-03-03 11:22:25 +0100 | [diff] [blame] | 320 | # No longer indexed: |
| 321 | #is('<>:dereko/s:back$<b>65<i>7008<i>7008<i>1009<b>1', $last->[0]); |
| 322 | #is('<>:dereko/s:div$<b>65<i>7008<i>7008<i>1009<b>2<s>1', $last->[1]); |
| 323 | #is('@:dereko/s:n:1$<b>17<s>1', $last->[2]); |
| 324 | #is('@:dereko/s:type:footnotes$<b>17<s>1', $last->[3]); |
| 325 | #is('@:dereko/s:complete:y$<b>17<s>1', $last->[4]); |
| 326 | is('_1008$<i>6990<i>7006', $last->[0]); |
| 327 | is('corenlp/p:NN', $last->[1]); |
| 328 | is('i:befreiungsschlag', $last->[2]); |
| 329 | is('opennlp/p:NN', $last->[3]); |
| 330 | is('s:Befreiungsschlag', $last->[4]); |
Akron | a5920b1 | 2016-06-29 18:51:21 +0200 | [diff] [blame] | 331 | |
Akron | 1924bbe | 2016-06-22 16:05:41 +0200 | [diff] [blame] | 332 | done_testing; |
| 333 | __END__ |