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