blob: 2dd912e3feb0eec7d593a421dc673b615d260f23 [file] [log] [blame]
Marc Kupietz5e7f20a2020-02-17 18:17:11 +01001#!/usr/bin/env perl
2use strict;
3use warnings;
4use POSIX;
Marc Kupietz6a79cad2021-03-19 16:26:58 +01005use Log::Any '$log';
6use Log::Any::Adapter;
7use Pod::Usage;
8use Getopt::Long qw(GetOptions :config no_auto_abbrev);
Marc Kupietz5e7f20a2020-02-17 18:17:11 +01009use Encode;
Marc Kupietz5e7f20a2020-02-17 18:17:11 +010010
11my $MAX_SENTENCE_LENGTH=10000;
12my $COMMENT_START="#";
Marc Kupietza2680b92021-10-11 17:24:28 +020013my $COMMENT_END="";
Marc Kupietz5e7f20a2020-02-17 18:17:11 +010014
15my $test=0;
16my $text_no=0;
17my %opts;
18my %plain_texts;
Marc Kupietzd8455832021-02-11 17:30:29 +010019my %sentence_ends;
20
Marc Kupietz4cc243a2021-10-11 17:15:16 +020021our $VERSION = '0.4.1.9000';
Marc Kupietz5e7f20a2020-02-17 18:17:11 +010022
Marc Kupietz0ab8a2c2021-03-19 16:21:00 +010023our $VERSION_MSG = "\nkorapxml2conllu - v$VERSION\n";
Marc Kupietz5e7f20a2020-02-17 18:17:11 +010024
Marc Kupietz6a79cad2021-03-19 16:26:58 +010025use constant {
26 # Set to 1 for minimal more debug output (no need to be parametrized)
27 DEBUG => $ENV{KORAPXMLCONLLU_DEBUG} // 0
28};
Marc Kupietz5e7f20a2020-02-17 18:17:11 +010029
Marc Kupietz6a79cad2021-03-19 16:26:58 +010030GetOptions(
31 'sigle-pattern|p=s' => \(my $sigle_pattern = ''),
Marc Kupietzeb7d06a2021-03-19 16:29:16 +010032 'extract-attributes-regex|e=s' => \(my $extract_attributes_regex = ''),
Marc Kupietz6a79cad2021-03-19 16:26:58 +010033 'log|l=s' => \(my $log_level = 'warn'),
Marc Kupietzd8455832021-02-11 17:30:29 +010034
Marc Kupietz6a79cad2021-03-19 16:26:58 +010035 'help|h' => sub {
36 pod2usage(
37 -verbose => 99,
38 -sections => 'NAME|DESCRIPTION|SYNOPSIS|ARGUMENTS|OPTIONS|EXAMPLES',
39 -msg => $VERSION_MSG,
40 -output => '-'
41 )
42 },
43 'version|v' => sub {
44 pod2usage(
45 -verbose => 0,
46 -msg => $VERSION_MSG,
47 -output => '-'
48 );
49 }
50);
Marc Kupietz5e7f20a2020-02-17 18:17:11 +010051
Marc Kupietz6a79cad2021-03-19 16:26:58 +010052# Establish logger
53binmode(STDERR, ':encoding(UTF-8)');
54Log::Any::Adapter->set('Stderr', log_level => $log_level);
55$log->notice('Debugging is activated') if DEBUG;
Marc Kupietz5e7f20a2020-02-17 18:17:11 +010056
57my $docid="";
58my ($current_id, $current_from, $current_to, $token);
59my $current;
60my ($unknown, $known) = (0, 0);
61my @current_lines;
62my %processedFilenames;
63my $zipsiglepattern = (defined($ENV{ZIPSIGLEPATTERN})? $ENV{ZIPSIGLEPATTERN} : "");
Marc Kupietzd8455832021-02-11 17:30:29 +010064my $baseOnly;
Marc Kupietzeb7d06a2021-03-19 16:29:16 +010065my %extras;
Marc Kupietz5e7f20a2020-02-17 18:17:11 +010066
67my ($ID_idx, $FORM_idx, $LEMMA_idx, $UPOS_idx, $XPOS_idx, $FEATS_idx, $HEAD_idx, $DEPREC_idx, $DEPS_idx, $MISC_idx) = (0..9);
68
Marc Kupietzc7d1b932020-09-23 13:17:17 +020069my $UNZIP = `sh -c 'command -v unzip'`;
70chomp $UNZIP;
71
72
73if ($UNZIP eq '') {
74 warn('No unzip executable found in PATH.');
75 return 0;
76};
77
Marc Kupietz5e7f20a2020-02-17 18:17:11 +010078foreach my $morpho_zip (@ARGV) {
79 die "cannot open $morpho_zip" if(! -r $morpho_zip);
80 my $data_zip = $morpho_zip;
81 if ($data_zip !~ /\.zip/ && $data_zip =~ /\.conllu?/i) {
82 open(CONLL, "<$data_zip") or die "cannot open $data_zip";
83 while(<CONLL>) {
84 print;
85 }
86 close(CONLL);
87 next;
88 }
89 $data_zip =~ s/\.([^.]+)\.zip$/.zip/;
90 my $foundry = $1;
91 die "cannot open data file $data_zip corresponding to $morpho_zip" if(! -r $data_zip);
92
93 my $first=1;
Marc Kupietz5e7f20a2020-02-17 18:17:11 +010094 my @conll = ("_") x 10;
95 my $filename;
96
Marc Kupietzd8455832021-02-11 17:30:29 +010097 $baseOnly = $morpho_zip eq $data_zip;
98 my ($morphoOrTokenCommand, $plaintextAndStructureCommand);
Marc Kupietzeb7d06a2021-03-19 16:29:16 +010099 if (!$baseOnly) {
100 $morphoOrTokenCommand = "$UNZIP -c $morpho_zip '*/${sigle_pattern}*/*/*/morpho.xml' $zipsiglepattern |";
101 if ($extract_attributes_regex) {
102 $plaintextAndStructureCommand = "$UNZIP -c $data_zip '*/${sigle_pattern}*/*/[sd][ta]*.xml' $zipsiglepattern |";
103 } else {
104 $plaintextAndStructureCommand = "$UNZIP -c $data_zip '*/${sigle_pattern}*/*/data.xml' $zipsiglepattern |";
105 }
Marc Kupietzd8455832021-02-11 17:30:29 +0100106 } else {
107 $foundry = "base";
Marc Kupietzf1fdc192021-10-08 13:29:59 +0200108 $morphoOrTokenCommand = "$UNZIP -l $morpho_zip '*/${sigle_pattern}*/*/*/morpho.xml' $zipsiglepattern";
109 if (`$morphoOrTokenCommand` !~ /morpho\.xml/) {
110 $morphoOrTokenCommand =~ s/morpho\.xml/tokens.xml/;
111 } else {
112 $baseOnly = 0;
113 }
114 $morphoOrTokenCommand =~ s/-l/-c/;
115 $morphoOrTokenCommand .= ' |';
Marc Kupietzeb7d06a2021-03-19 16:29:16 +0100116 $plaintextAndStructureCommand = "$UNZIP -c $data_zip '*/${sigle_pattern}*/*/[sd][ta]*.xml' $zipsiglepattern |";
Marc Kupietzd8455832021-02-11 17:30:29 +0100117 }
118
119 open (MORPHO_OR_TOKENPIPE, $morphoOrTokenCommand) or die "cannot unzip $morpho_zip";
120 open (PLAINTEXTPIPE, $plaintextAndStructureCommand) or die "cannot unzip $data_zip";
Marc Kupietza2680b92021-10-11 17:24:28 +0200121 print "$COMMENT_START foundry = $foundry$COMMENT_END\n";
Marc Kupietzd8455832021-02-11 17:30:29 +0100122 while (<MORPHO_OR_TOKENPIPE>) {
Marc Kupietz30c41b12020-09-22 14:32:34 +0200123 if (/^ inflating: (.*)/) {
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100124 $filename=$1;
Marc Kupietzd8455832021-02-11 17:30:29 +0100125 while($processedFilenames{$filename} && !eof(MORPHO_OR_TOKENPIPE)) {
Marc Kupietz6a79cad2021-03-19 16:26:58 +0100126 $log->warn("$filename already processed");
Marc Kupietzd8455832021-02-11 17:30:29 +0100127 while (<MORPHO_OR_TOKENPIPE>) {
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100128 last if(/\s+inflating:\s+(.*)/);
129 }
Marc Kupietzd8455832021-02-11 17:30:29 +0100130 $filename=$1 if(!eof(MORPHO_OR_TOKENPIPE) && /\s+inflating:\s+(.*)/);
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100131 }
Marc Kupietz30c41b12020-09-22 14:32:34 +0200132 } elsif(m@^\s*<layer\s+.*docid="([^"]+)"@) {
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100133 last if($test && $text_no++ > 3);
134 if(!$first) {
135 closeDoc(0);
136 }
137 $processedFilenames{$filename}=1;
138 $docid=$1;
139 @current_lines=();
140 $known=$unknown=0;
141 $current="";
142 if ($first) {
143 $first = 0;
144 }
145 if(!fetch_plaintext($docid)) { # skip this text
Marc Kupietzd8455832021-02-11 17:30:29 +0100146 while (<MORPHO_OR_TOKENPIPE>) {
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100147 last if(m@</layer>@);
148 }
149 }
Marc Kupietza2680b92021-10-11 17:24:28 +0200150 print STDOUT "$COMMENT_START filename = $filename$COMMENT_END\n$COMMENT_START text_id = $docid$COMMENT_END\n";
Marc Kupietz6a79cad2021-03-19 16:26:58 +0100151 $log->debug("Analyzing $docid");
Marc Kupietz30c41b12020-09-22 14:32:34 +0200152 } elsif (m@^\s*<f\s+.*name="([^"]+)">([^<]+)</f>@) {
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100153 if ($1 eq "lemma") {
154 $conll[$LEMMA_idx] = $2;
155 $conll[$LEMMA_idx] =~ s/[\t\n\r]//g; # make sure that lemmas never contain tabs or newlines
156 if($conll[$LEMMA_idx] eq 'UNKNOWN') {
157 $conll[$LEMMA_idx] = "--";
158 $unknown++;
159 } else {
160 $known++;
161 }
162 } elsif ($1 eq 'pos' || $1 eq "ctag") {
163 $unknown++;
164 $conll[$XPOS_idx] = $conll[$UPOS_idx] = $2;
165 } elsif ($1 eq 'msd') {
166 $conll[$FEATS_idx] = $2;
167 } elsif ($1 eq 'certainty') {
168 $conll[$MISC_idx] = $2;
169 }
170 } elsif (/<span /) {
Marc Kupietzeb7d06a2021-03-19 16:29:16 +0100171 my $last_from = $current_from // -1;
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100172 ($current_id) = /id="[^0-9]*([^\"]*)"/;
173 ($current_from) = /from="([^\"]*)"/;
174 ($current_to) = /to="([^\"]*)"/;
Marc Kupietzeb7d06a2021-03-19 16:29:16 +0100175 if($extract_attributes_regex) {
176 for (my $i = $last_from + 1; $i <= $current_from; $i++) {
177 if ($extras{$docid}{$i}) {
178 $current .= $extras{$docid}{$i};
179 undef $extras{$docid}{$i};
180 }
181 }
182 }
Marc Kupietz1db65e52021-07-31 23:38:07 +0200183# $log->debug("found span: $current_id $current_from $current_to");
Marc Kupietz7e71a822020-06-22 17:14:30 +0200184 $token = substr($plain_texts{$docid}, $current_from, $current_to - $current_from);
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100185 if (!defined $token) {
Marc Kupietz6a79cad2021-03-19 16:26:58 +0100186 $log->warn("could not retrieve token for $docid at $current_from-$current_to/", length($plain_texts{$docid}), " - ending with: ", substr($plain_texts{$docid},length($plain_texts{$docid})-10));
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100187 $token = "_";
188 }
189 $token=~s/[\t\n\r]//g; # make sure that tokens never contain tabs or newlines
190 @conll = ("_") x 10;
191 $conll[$FORM_idx] = encode("utf-8", $token);
Marc Kupietzd8455832021-02-11 17:30:29 +0100192 if($baseOnly) {
193 my @vals = ($current_from, $current_to);
Marc Kupietz1db65e52021-07-31 23:38:07 +0200194# $log->debug("joining : ", join(" ", @vals));
Marc Kupietzd8455832021-02-11 17:30:29 +0100195 push @current_lines, \@vals;
196 $known++;
197 $conll[$ID_idx] = $#current_lines+1;
198 $current .= join("\t", @conll) . "\n"; # conll columns
199 fetch_plaintext($docid);
200 if ($sentence_ends{$docid}{$current_to}) {
201 $current .= "\n";
202 printTokenRanges();
203 print STDOUT $current;
204 $current = "";
205 $known = 0;
206 $unknown = 0;
207 @current_lines = ();
208 }
209 }
Marc Kupietz30c41b12020-09-22 14:32:34 +0200210 } elsif (m@^\s*</fs>@) {
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100211 my @vals = ($current_from, $current_to);
Marc Kupietz1db65e52021-07-31 23:38:07 +0200212# $log->debug("joining : ", join(" ", @vals));
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100213 push @current_lines, \@vals;
214 # convert gathered information to CONLL
215 $conll[$ID_idx] = $#current_lines+1;
216 $current .= join("\t", @conll) . "\n"; # conll columns
217 if($conll[$XPOS_idx] eq '$.' || ($conll[$XPOS_idx] eq 'SENT' && $token eq '.') || $known + $unknown >= $MAX_SENTENCE_LENGTH) {
218 $current .= "\n";
219 if($known + $unknown > 0) { # only print sentence if it contains some words
220 printTokenRanges();
221 print STDOUT $current;
222 }
223 $current=""; $known=0; $unknown=0;
224 @current_lines = ();
225 }
Marc Kupietzd8455832021-02-11 17:30:29 +0100226 while (<MORPHO_OR_TOKENPIPE>) {
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100227 last if (m@</span>@); # only consider first interpretation
228 }
229 }
230 }
231 $current .= "\n";
232 closeDoc(1);
Marc Kupietzd8455832021-02-11 17:30:29 +0100233 close(MORPHO_OR_TOKENPIPE);
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100234 close(PLAINTEXTPIPE);
235}
236exit;
237
238sub printTokenRanges {
239 print "$COMMENT_START start_offsets = ", $current_lines[0]->[0];
240 foreach my $t (@current_lines) {
241 print STDOUT " $t->[0]";
242 }
Marc Kupietza2680b92021-10-11 17:24:28 +0200243 print "$COMMENT_END\n$COMMENT_START end_offsets = ", $current_lines[$#current_lines]->[1];
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100244 foreach my $t (@current_lines) {
245 print STDOUT " $t->[1]";
246 }
Marc Kupietza2680b92021-10-11 17:24:28 +0200247 print "$COMMENT_END\n";
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100248}
249
250sub closeDoc {
Marc Kupietz6a79cad2021-03-19 16:26:58 +0100251 $log->debug("closing doc");
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100252 if($known + $unknown > 0) { # only parse a sentence if it has some words
253 chomp $current;
254 chomp $current;
255 chomp $current;
256 $current .= "\n\n";
257 printTokenRanges();
258 print STDOUT $current;
259 }
260}
261
262# read data.xml to figure out the tokens
263# (ideally tokens should also be in in morpho.xml, but they are not)
264sub fetch_plaintext {
265 my ($target_id) = @_;
266 my $docid;
267 my $text_started=0;
Marc Kupietzeb7d06a2021-03-19 16:29:16 +0100268 my $text_count = 0;
Marc Kupietzd8455832021-02-11 17:30:29 +0100269 my ($current_id, $current_from, $current_to);
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100270
Marc Kupietzd8455832021-02-11 17:30:29 +0100271 if($plain_texts{$target_id} && (!$baseOnly || $sentence_ends{$target_id}{-1})) {
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100272# print STDERR "already got $target_id\n";
Marc Kupietz1db65e52021-07-31 23:38:07 +0200273 $log->debug("Already got $target_id");
Marc Kupietzd8455832021-02-11 17:30:29 +0100274 return 1;
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100275 }
276 while(<PLAINTEXTPIPE>) {
277 if(/<raw_text[^>]+docid="([^"]*)/) {
278 $docid=$1;
Marc Kupietz1db65e52021-07-31 23:38:07 +0200279 $log->debug("Getting plain text for $docid");
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100280 $text_started=0;
Marc Kupietzd8455832021-02-11 17:30:29 +0100281 } elsif(/<layer[^>]+docid="([^"]*)/) {
282 $docid=$1;
283 $sentence_ends{$docid}{-1}=1;
284 } elsif(m@<span @) {
285 ($current_id) = /id="[^0-9]*([^\"]*)"/;
286 ($current_from) = /from="([^\"]*)"/;
287 ($current_to) = /to="([^\"]*)"/;
288 } elsif(m@<f\s[^>]*>s</f>@) {
Marc Kupietz6a79cad2021-03-19 16:26:58 +0100289 $log->debug("Found sentence end for $docid \@$current_to");
Marc Kupietzd8455832021-02-11 17:30:29 +0100290 $sentence_ends{$docid}{$current_to}=1;
Marc Kupietzeb7d06a2021-03-19 16:29:16 +0100291 } elsif($extract_attributes_regex && m@<f\sname="name"[^>]*>([^<]+)</f>@) {
292 my $current_element = $1;
Marc Kupietz1db65e52021-07-31 23:38:07 +0200293 $log->debug("Looking for matching attributes in $docid");
Marc Kupietzeb7d06a2021-03-19 16:29:16 +0100294 while(<PLAINTEXTPIPE>) {
295 last if(m@</fs>@);
296 if(m@<f\sname="([^"]+)"[^>]*>([^<]+)</f>@) {
297 my $current_node = "$current_element/$1";
298 my $value = $2;
299 if ($current_node =~ /$extract_attributes_regex/) {
Marc Kupietz1db65e52021-07-31 23:38:07 +0200300 $log->debug("Found matching attribute: $docid - $current_node = $value");
Marc Kupietzeb7d06a2021-03-19 16:29:16 +0100301 $extras{$docid}{$current_from} .= "# $current_node = $value\n";
302 }
303 }
304 }
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100305 } elsif (m@<text>(.*)</text>@) {
306 $_= decode("utf-8", $1, Encode::FB_DEFAULT);
307 s/&lt;/</go;
308 s/&gt;/>/go;
309 s/&amp;/&/go;
310 tr/…•⋅»«ˮ“”„›‹ʼ‘’‚′‐‑‒–—―⁓⁻₋−﹣-/...""""""'''''''-/;
311 $plain_texts{$docid} = $_;
Marc Kupietz093b21c2021-07-31 23:39:51 +0200312 last if(!$extract_attributes_regex && ($text_count++ > 1 && $plain_texts{$target_id}));
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100313 } elsif (m@<text>(.*)@) {
314 $_= decode("utf-8", $1, Encode::FB_DEFAULT);
315 s/&lt;/</go;
316 s/&gt;/>/go;
317 s/&amp;/&/go;
318 tr/…•⋅»«ˮ“”„›‹ʼ‘’‚′‐‑‒–—―⁓⁻₋−﹣-/...""""""'''''''-/;
319 $plain_texts{$docid} = "$_ ";
320 $text_started=1;
321 } elsif ($text_started && m@(.*)</text>@) {
322 $_= decode("utf-8", $1, Encode::FB_DEFAULT);
323 s/&lt;/</go;
324 s/&gt;/>/go;
325 s/&amp;/&/go;
326 tr/…•⋅»«ˮ“”„›‹ʼ‘’‚′‐‑‒–—―⁓⁻₋−﹣-/...""""""'''''''-/;
327 $plain_texts{$docid} .= $_;
328 $text_started=0;
Marc Kupietz093b21c2021-07-31 23:39:51 +0200329 last if(!$extract_attributes_regex && ($text_count++ > 1 && $plain_texts{$target_id}));
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100330 } elsif ($text_started) {
331 chomp;
332 $_ = decode("utf-8", $_, Encode::FB_DEFAULT) . ' ';
333 s/&lt;/</go;
334 s/&gt;/>/go;
335 s/&amp;/&/go;
336 tr/…•⋅»«ˮ“”„›‹ʼ‘’‚′‐‑‒–—―⁓⁻₋−﹣-/...""""""'''''''-/;
337 $plain_texts{$docid} .= $_;
338 }
339 }
Marc Kupietz1db65e52021-07-31 23:38:07 +0200340 $log->debug("Got plain text for $docid");
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100341 if(defined($ENV{PLAINTEXTFILTER})) {
342 if ($plain_texts{$docid} !~ $ENV{PLAINTEXTFILTER}) {
343 $plain_texts{$docid} = undef;
Marc Kupietz6a79cad2021-03-19 16:26:58 +0100344 $log->info("Skipping $docid");
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100345 return(undef);
346 } else {
Marc Kupietz6a79cad2021-03-19 16:26:58 +0100347 $log->debug("Using $docid");
Marc Kupietz5e7f20a2020-02-17 18:17:11 +0100348 }
349 }
350 return(1);
351}
Marc Kupietz6a79cad2021-03-19 16:26:58 +0100352
353=pod
354
355=encoding utf8
356
357=head1 NAME
358
359korapxml2conllu - Conversion of KorAP-XML zips to CoNLL-U
360
361=head1 SYNOPSIS
362
363 korapxml2conllu zca15.tree_tagger.zip > zca15.conllu
364
365=head1 DESCRIPTION
366
367C<korapxml2conllu> is a script to Convert L<KorAP-XML format|https://github.com/KorAP/KorAP-XML-Krill#about-korap-xml> base or morpho zips to CoNLL(-U) format with all information necessary
368 for reconstruction in comment lines.
369
370=head1 INSTALLATION
371
372 $ cpanm https://github.com/KorAP/KorAP-XML-CoNLL-U.git
373
374=head1 OPTIONS
375
376=over 2
377
378=item B<--sigle-pattern|-p>
379
380Convert only texts from the KorAP XML zip files with folder names (i.e. sigles) matching the glob pattern.
Marc Kupietzeb7d06a2021-03-19 16:29:16 +0100381
382=item B<--extract-attribute-pattern|-e>
383
384Extract element/attribute regular expressions to comments.
385
Marc Kupietz6a79cad2021-03-19 16:26:58 +0100386=item B<--help|-h>
387
388Print help information.
389
390=item B<--version|-v>
391
392Print version information.
393
394
395=item B<--log|-l>
396
397Loglevel for I<Log::Any>. Defaults to C<warn>.
398
399=back
400
401=head1 EXAMPLES
Marc Kupietzeb7d06a2021-03-19 16:29:16 +0100402
403 korapxml2conllu -e '(posting/id|div/id)' t/data/wdf19.zip
404
Marc Kupietz6a79cad2021-03-19 16:26:58 +0100405=head1 COPYRIGHT AND LICENSE
406
407Copyright (C) 2021, L<IDS Mannheim|https://www.ids-mannheim.de/>
408
409Author: Marc Kupietz
410
411Contributors: Nils Diewald
412
413L<KorAP::XML::CoNNL-U> is developed as part of the L<KorAP|https://korap.ids-mannheim.de/>
414Corpus Analysis Platform at the
415L<Leibniz Institute for the German Language (IDS)|http://ids-mannheim.de/>,
416member of the
417L<Leibniz-Gemeinschaft|http://www.leibniz-gemeinschaft.de/>.
418
419This program is free software published under the
420L<BSD-2 License|https://opensource.org/licenses/BSD-2-Clause>.