blob: c18791813bbfb03058760f6ae02d93c17779342d [file] [log] [blame]
Marc Kupietz79ba1e52021-02-12 17:26:54 +01001#!/usr/bin/env perl
2use strict;
3use warnings;
4use POSIX;
Marc Kupietzaeb84a02021-10-11 17:57:29 +02005use Getopt::Long qw(GetOptions :config no_auto_abbrev);
6use Log::Any '$log';
7use Log::Any::Adapter;
Marc Kupietz79ba1e52021-02-12 17:26:54 +01008use Encode;
9use IO::Compress::Zip qw(zip $ZipError :constants);
10use File::Basename;
Marc Kupietzaeb84a02021-10-11 17:57:29 +020011use Pod::Usage;
Marc Kupietz79ba1e52021-02-12 17:26:54 +010012
13my $_COMPRESSION_METHOD = ZIP_CM_DEFLATE;
14my %opts;
15my %processedFilenames;
16
Akronf3efc9e2026-06-03 10:46:37 +020017our $VERSION = '0.7.0';
Marc Kupietzaeb84a02021-10-11 17:57:29 +020018our $VERSION_MSG = "\nconllu2korapxml - v$VERSION\n";
Marc Kupietz4cc243a2021-10-11 17:15:16 +020019
Marc Kupietzaeb84a02021-10-11 17:57:29 +020020use constant {
21 # Set to 1 for minimal more debug output (no need to be parametrized)
22 DEBUG => $ENV{KORAPXMLCONLLU_DEBUG} // 0
23};
Marc Kupietz79ba1e52021-02-12 17:26:54 +010024
Marc Kupietzaeb84a02021-10-11 17:57:29 +020025GetOptions(
26 'force-foundry|f=s' => \(my $foundry_name = ''),
Akron8dabdc12026-06-02 16:36:07 +020027 'text-sigle|s=s' => \(my $text_sigle_template = ''),
Akron982dd1e2026-06-03 11:52:48 +020028 'base-text' => \(my $base_text = 0),
Marc Kupietzaeb84a02021-10-11 17:57:29 +020029 'log|l=s' => \(my $log_level = 'warn'),
Marc Kupietz187abd72024-06-25 14:30:01 +020030 'output|o=s' => \(my $outh = '-'),
Marc Kupietz79ba1e52021-02-12 17:26:54 +010031
Marc Kupietzaeb84a02021-10-11 17:57:29 +020032 'help|h' => sub {
33 pod2usage(
34 -verbose => 99,
35 -sections => 'NAME|DESCRIPTION|SYNOPSIS|ARGUMENTS|OPTIONS|EXAMPLES',
36 -msg => $VERSION_MSG,
37 -output => '-'
38 )
39 },
40 'version|v' => sub {
41 pod2usage(
42 -verbose => 0,
43 -msg => $VERSION_MSG,
44 -output => '-'
45 );
46 }
47);
Marc Kupietz79ba1e52021-02-12 17:26:54 +010048
Akron8dabdc12026-06-02 16:36:07 +020049# Validate text-sigle template format
50if ($text_sigle_template) {
51 my $test_sigle = $text_sigle_template;
52 $test_sigle =~ s/\{ID\}/PLACEHOLDER/gi;
53 my @tpl_parts = split('/', $test_sigle);
54 if (scalar @tpl_parts != 3) {
55 die "ERROR: text-sigle template must produce exactly 3"
56 . " slash-separated parts (CORPUS/DOC/TEXT), got "
57 . scalar(@tpl_parts) . " from '$text_sigle_template'\n";
58 }
59 if (grep { $_ eq '' } @tpl_parts) {
60 die "ERROR: text-sigle template '$text_sigle_template'"
61 . " must not contain empty parts\n";
62 }
63}
64
Marc Kupietzaeb84a02021-10-11 17:57:29 +020065# Establish logger
66binmode(STDERR, ':encoding(UTF-8)');
67Log::Any::Adapter->set('Stderr', log_level => $log_level);
68$log->notice('Debugging is activated') if DEBUG;
Marc Kupietz79ba1e52021-02-12 17:26:54 +010069
70my $docid="";
71my $zip = undef;
Marc Kupietz79ba1e52021-02-12 17:26:54 +010072my $parser_file;
73my $parse;
74my $morpho_file;
75my $morpho;
76my @spansFrom;
77my @spansTo;
78my $current;
79my ($unknown, $known) = (0, 0);
Akronf3efc9e2026-06-03 10:46:37 +020080my $sentence_text = '';
81my $doc_offset = 0;
82my $text_pos = 0;
83my $compute_offsets_mode = 0;
84# Buffer dependency arcs until all token offsets in a sentence are known
85my @dep_buffer;
Marc Kupietz79ba1e52021-02-12 17:26:54 +010086
87my ($write_morpho, $write_syntax, $base) = (1, 0, 0);
Akron982dd1e2026-06-03 11:52:48 +020088# Sentence texts accumulated per document for data.xml generation
89my @doc_texts;
Marc Kupietz79ba1e52021-02-12 17:26:54 +010090my $filename;
Marc Kupietz79ba1e52021-02-12 17:26:54 +010091my $first=1;
92my @conllu_files = @ARGV;
93push @conllu_files, "-" if (@conllu_files == 0);
94my $fh;
Marc Kupietzdd546a82024-03-22 16:30:09 +010095
96my $dependency_foundry_name = $foundry_name;
97if ($foundry_name =~ /(.*) dependency:(.*)/) {
98 $foundry_name = $1;
99 $dependency_foundry_name = $2;
100}
101
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100102foreach my $conllu_file (@conllu_files) {
103 if ($conllu_file eq '-') {
104 $fh = \*STDIN;
105 } else {
106 open($fh, "<", $conllu_file) or die "Cannot open $conllu_file";
107 }
108 my $i=0; my $s=0; my $first_in_sentence=0;
109 my $lastDocSigle="";
Akron49f333b2022-09-27 17:03:49 +0200110 MAIN: while (<$fh>) {
Marc Kupietzbcb55b82022-09-15 11:42:26 +0200111 if(/^\s*(?:#|0\.\d)/) {
112 if(/^(?:#|0\.1)\s+filename\s*[:=]\s*(.*)/) {
113 $filename=$1;
114 if(!$first) {
115 closeDoc(0);
116 } else {
117 $first=0;
118 }
119 if($processedFilenames{$filename}) {
120 $log->warn("WARNING: $filename is already processed");
121 }
122 $processedFilenames{$filename}=1;
123 $i=0;
Akronf3efc9e2026-06-03 10:46:37 +0200124 $doc_offset = 0;
125 $sentence_text = '';
126 $compute_offsets_mode = 0;
Akron982dd1e2026-06-03 11:52:48 +0200127 @doc_texts = ();
Akron8dabdc12026-06-02 16:36:07 +0200128 } elsif (/^#\s*newdoc\s+id\s*=\s*(.*)/ && $text_sigle_template) {
129 my $newdoc_id = $1;
130 $newdoc_id =~ s/\s+$//;
131
132 if (!$first) {
133 closeDoc(0);
134 } else {
135 $first = 0;
136 }
137
138 my $text_sigle = $text_sigle_template;
139 $text_sigle =~ s/\{ID\}/$newdoc_id/gi;
140
141 my @parts = split('/', $text_sigle);
142 if (scalar @parts != 3 || grep { $_ eq '' } @parts) {
143 die "ERROR: Expanded text sigle '$text_sigle' is not"
144 . " in valid CORPUS/DOC/TEXT format\n";
145 }
146
147 $filename = "$text_sigle/base/tokens.xml";
148 if ($processedFilenames{$filename}) {
149 $log->warn("WARNING: $filename is already processed");
150 }
151 $processedFilenames{$filename} = 1;
152 $i = 0;
153
154 my $last = pop @parts;
155 $docid = join('_', @parts) . '.' . $last;
156
157 my $docSigle = $docid;
158 $docSigle =~ s/\..*//;
159 if ($docSigle ne $lastDocSigle) {
160 $log->info("Analyzing $docSigle");
161 $lastDocSigle = $docSigle;
162 }
163 $known = $unknown = 0;
164 $current = "";
165
166 $morpho_file = "$text_sigle/$foundry_name/morpho.xml";
167 $parser_file = "$text_sigle/$dependency_foundry_name/dependency.xml";
168
169 $parse = $morpho = layer_header($docid);
Marc Kupietzbcb55b82022-09-15 11:42:26 +0200170 } elsif(/^#\s*foundry\s*[:=]\s*(.*)/) {
171 if(!$foundry_name) {
Marc Kupietzdd546a82024-03-22 16:30:09 +0100172 $dependency_foundry_name = $foundry_name = $1;
173 if ($foundry_name =~ /(.*) dependency:(.*)/) {
174 $foundry_name = $1;
175 $dependency_foundry_name = $2;
176 }
Marc Kupietzbcb55b82022-09-15 11:42:26 +0200177 $log->debug("Foundry: $foundry_name\n");
178 } else {
179 $log->debug("Ignored foundry name: $1\n");
180 }
181 } elsif(/^#\s*generator\s*[=]\s*udpipe/i) {
182 if(!$foundry_name) {
Marc Kupietzdd546a82024-03-22 16:30:09 +0100183 $dependency_foundry_name = $foundry_name = "ud";
Marc Kupietzbcb55b82022-09-15 11:42:26 +0200184 $log->debug("Foundry: $foundry_name\n");
185 } else {
186 $log->debug("Ignored foundry name: ud\n");
187 }
Akron49f333b2022-09-27 17:03:49 +0200188 } elsif(/^(?:#|0\.2)\s+text_id\s*[:=]\s*(.*)/) {
Marc Kupietzbcb55b82022-09-15 11:42:26 +0200189 $docid=$1;
Marc Kupietzcc391472024-06-24 10:48:34 +0200190 $docid =~ s/\s+$//;
Marc Kupietzbcb55b82022-09-15 11:42:26 +0200191 my $docSigle = $docid;
192 $docSigle =~ s/\..*//;
193 if($docSigle ne $lastDocSigle) {
194 $log->info("Analyzing $docSigle");
195 $lastDocSigle = $docSigle;
196 }
197 $known=$unknown=0;
198 $current="";
199 $parser_file = dirname($filename);
200 $parser_file =~ s@(.*)/[^/]+$@$1@;
201 $morpho_file = $parser_file;
202 $morpho_file .= "/$foundry_name/morpho.xml";
Marc Kupietzdd546a82024-03-22 16:30:09 +0100203 $parser_file .= "/$dependency_foundry_name/dependency.xml";
Marc Kupietzbcb55b82022-09-15 11:42:26 +0200204 $parse = $morpho = layer_header($docid);
205 } elsif (/^(?:#|0\.3)\s+(?:start_offsets|from)\s*[:=]\s*(.*)/) {
206 @spansFrom = split(/\s+/, $1);
207 } elsif (/^(?:#|0\.4)\s+(?:end_offsets|to)\s+[:=]\s*(.*)/) {
208 @spansTo = split(/\s+/, $1);
Akronf3efc9e2026-06-03 10:46:37 +0200209 } elsif (/^#\s*text\s*=\s*(.*)/) {
Akronf3efc9e2026-06-03 10:46:37 +0200210 $sentence_text = decode('UTF-8', $1);
Akron982dd1e2026-06-03 11:52:48 +0200211 if ($base_text) {
212 my $txt = $1;
213 $txt =~ s/\s+$//;
214 push @doc_texts, $txt;
215 }
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100216 }
Akron49f333b2022-09-27 17:03:49 +0200217 } elsif ( !/^\s*$/ ) {
Akronf3efc9e2026-06-03 10:46:37 +0200218 # Pre-split columns before offset computation needs the raw form
219 my @raw_cols = split('\t');
220 chomp $raw_cols[$#raw_cols] if @raw_cols;
221
222 # Enter offset computation mode when no explicit offsets given
223 if (!$compute_offsets_mode && scalar @spansFrom == 0
224 && $sentence_text && $docid) {
225 $compute_offsets_mode = 1;
226 @spansFrom = ();
227 @spansTo = ();
228 # Sentence-level span covers the full sentence text
229 $spansFrom[0] = $doc_offset;
230 $spansTo[0] = $doc_offset + length($sentence_text);
231 $text_pos = 0;
232 }
233
234 # Locate each token form in sentence text via index()
235 if ($compute_offsets_mode && @raw_cols >= 2 && $raw_cols[0] =~ /^\d+$/) {
236 my $raw_form = decode('UTF-8', $raw_cols[1]);
237 my $t_num = $raw_cols[0];
238 # Find token starting from current position (handles SpaceAfter)
239 my $pos_in_text = index($sentence_text, $raw_form, $text_pos);
240 if ($pos_in_text >= 0) {
241 $spansFrom[$t_num] = $doc_offset + $pos_in_text;
242 $spansTo[$t_num] = $spansFrom[$t_num] + length($raw_form);
243 # Advance past this token for the next search
244 $text_pos = $pos_in_text + length($raw_form);
245 } else {
246 $log->warn("WARNING: Token form not found in sentence text in $conllu_file line $.");
247 }
248 }
249
Akron49f333b2022-09-27 17:03:49 +0200250 if ( !$docid || scalar @spansTo == 0 || scalar @spansFrom == 0 ) {
251 if ( !$docid ) {
Marc Kupietz67d8c432024-06-25 14:32:16 +0200252 $log->warn("WARNING: Invalid input in $conllu_file: text_id (e.g. '# text_id = GOE_AGA.00000') missing in line $. when writing to $outh");
Akron49f333b2022-09-27 17:03:49 +0200253 }
254 if ( scalar @spansTo == 0 || scalar @spansFrom == 0 ) {
Marc Kupietz67d8c432024-06-25 14:32:16 +0200255 $log->warn("WARNING: Invalid input in $conllu_file: token offsets missing in line $. when writing to $outh");
Akron49f333b2022-09-27 17:03:49 +0200256 }
257
258 # Skip to next potentially valid document
259 while (<$fh>) {
260 next MAIN if m!^\s*$!s;
261 }
262 };
Marc Kupietzd50de7c2024-03-10 15:24:55 +0100263 my @parsed = map {
264 my $s = $_;
265 $s =~ s/&/&amp;/g;
266 $s =~ s/</&lt;/g;
267 $s =~ s/>/&gt;/g;
268 $s;
Akronf3efc9e2026-06-03 10:46:37 +0200269 } @raw_cols;
Akron49f333b2022-09-27 17:03:49 +0200270 if (@parsed != 10) {
Marc Kupietzaeb84a02021-10-11 17:57:29 +0200271 $log->warn("WARNING: skipping strange parser output line in $docid");
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100272 $i++;
273 next;
274 }
275 my $t=$parsed[0];
276 if($t == 1) {
277 $s++;
278 $first_in_sentence = $i;
279 }
280 if($parsed[6] =~ /\d+/ && $parsed[7] !~ /_/) {
281 $write_syntax=1;
Akronf3efc9e2026-06-03 10:46:37 +0200282 # Buffer dep arcs; flushed at end of sentence when offsets are ready
283 push @dep_buffer, [$s, $t, $parsed[6], $parsed[7]];
Marc Kupietza591cdd2021-10-12 13:23:48 +0200284 }
Marc Kupietz5cc4df22024-03-24 13:46:42 +0100285 my $pos = $parsed[4];
286 my $upos = $parsed[3];
Marc Kupietza591cdd2021-10-12 13:23:48 +0200287 $pos =~ s/\|.*//;
288 $morpho .= qq( <span id="s${s}_n$t" from="$spansFrom[$t]" to="$spansTo[$t]">
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100289 <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
290 <f name="lex">
291 <fs>
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100292);
Marc Kupietz5cc4df22024-03-24 13:46:42 +0100293 if($pos ne "_") {
294 $morpho .= qq( <f name="pos">$pos</f>\n);
295 }
296 if($upos ne "_") {
297 $morpho .= qq( <f name="upos">$upos</f>\n);
298 }
Marc Kupietz97ba2ba2021-10-11 17:55:47 +0200299 $morpho .= qq( <f name="lemma">$parsed[2]</f>\n) if($parsed[2] ne "_" || $parsed[1] eq '_');
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100300 $morpho .= qq( <f name="msd">$parsed[5]</f>\n) if($parsed[5] ne "_");
301 if($parsed[9] ne "_") {
302 if ($parsed[9] =~ /[0-9.e]+/) {
303 $morpho .= qq( <f name="certainty">$parsed[9]</f>\n)
304 }
305 else {
306 $morpho .= qq( <f name="misc">$parsed[9]</f>\n)
307 }
308 }
309 $morpho .= qq( </fs>
310 </f>
311 </fs>
312 </span>
313);
314 $i++;
Akronf3efc9e2026-06-03 10:46:37 +0200315 } else {
316 # Empty line = end of sentence
317 flush_dep_buffer();
318 if ($compute_offsets_mode) {
319 # Advance doc offset past sentence + 1-char space separator
320 $doc_offset += length($sentence_text) + 1;
321 @spansFrom = ();
322 @spansTo = ();
323 $compute_offsets_mode = 0;
324 }
325 $sentence_text = '';
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100326 }
327 }
328 $current .= "\n";
329 closeDoc(1);
Akron49f333b2022-09-27 17:03:49 +0200330 $zip->close() if $zip;
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100331 close($fh);
332}
333exit;
334
335sub newZipStream {
336 my ($fname) = @_;
337 if (defined $zip) {
338 $zip->newStream(Zip64 => 1, TextFlag => 1, Method => $_COMPRESSION_METHOD,
Marc Kupietz447f4752024-03-22 17:35:57 +0100339 Append => 1, Name => $fname, ExtAttr => 0100666 << 16)
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100340 or die "ERROR ('$fname'): zip failed: $ZipError\n";
341 } else {
342 $zip = new IO::Compress::Zip $outh, Zip64 => 1, TextFlag => 1,
Marc Kupietz447f4752024-03-22 17:35:57 +0100343 Method => $_COMPRESSION_METHOD, Append => 0, Name => "$fname", ExtAttr => 0100666 << 16
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100344 or die "ERROR ('$fname'): zip failed: $ZipError\n";
345 }
346}
347
Akronf3efc9e2026-06-03 10:46:37 +0200348# Write buffered dependency arcs now that all token offsets are resolved
349sub flush_dep_buffer {
350 foreach my $dep (@dep_buffer) {
351 my ($ds, $dt, $dhead, $dlabel) = @$dep;
352 $parse .= qq@<span id="s${ds}_n$dt" from="$spansFrom[$dt]" to="$spansTo[$dt]">
353<rel label="$dlabel">
354<span from="$spansFrom[$dhead]" to="$spansTo[$dhead]"/>
355</rel>
356</span>
357@;
358 }
359 @dep_buffer = ();
360}
361
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100362sub closeDoc {
Akronf3efc9e2026-06-03 10:46:37 +0200363 flush_dep_buffer();
Akron49f333b2022-09-27 17:03:49 +0200364 if ($write_morpho && $morpho_file) {
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100365 newZipStream($morpho_file);
366 $zip->print($morpho, qq( </spanList>\n</layer>\n));
367 }
Akron49f333b2022-09-27 17:03:49 +0200368 if ($write_syntax && $parser_file) {
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100369 $write_syntax = 0;
370 newZipStream($parser_file);
371 $zip->print($parse, qq(</spanList>\n</layer>\n));
372 }
Akron982dd1e2026-06-03 11:52:48 +0200373 # Write data.xml with reconstructed text when --base-text is set
374 if ($base_text && $filename && @doc_texts) {
375 my $text_dir = dirname($filename);
376 $text_dir =~ s@(.*)/[^/]+$@$1@;
377 my $data_path = "$text_dir/data.xml";
378 my $full_text = join(' ', @doc_texts);
379 $full_text =~ s/&/&amp;/g;
380 $full_text =~ s/</&lt;/g;
381 $full_text =~ s/>/&gt;/g;
382 newZipStream($data_path);
383 $zip->print(
384 qq(<?xml version="1.0" encoding="UTF-8"?>\n),
385 qq(<?xml-model href="text.rng" type="application/xml"),
386 qq( schematypens="http://relaxng.org/ns/structure/1.0"?>\n),
387 qq(<raw_text docid="$docid"),
388 qq( xmlns="http://ids-mannheim.de/ns/KorAP">\n),
389 qq(<text>$full_text</text>\n),
390 qq(</raw_text>\n)
391 );
392 @doc_texts = ();
393 }
Marc Kupietz79ba1e52021-02-12 17:26:54 +0100394}
395
396sub layer_header {
397 my ($docid) = @_;
398 return(qq(<?xml version="1.0" encoding="UTF-8"?>
399<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
400<layer docid="$docid" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
401<spanList>
402));
Marc Kupietzaeb84a02021-10-11 17:57:29 +0200403}
404
405=pod
406
407=encoding utf8
408
409=head1 NAME
410
411conllu2korapxml - Conversion of KorAP-XML CoNLL-U to KorAP-XML zips
412
413=head1 SYNOPSIS
414
415 conllu2korapxml < zca15.tree_tagger.conllu > zca15.tree_tagger.zip
416
417=head1 DESCRIPTION
418
419C<conllu2korapxml> converts CoNLL-U files that follow KorAP-specific comment conventions
420 and contain morphosyntactic and/or dependency annotations to
421 corresponding KorAP-XML zip files.
422
423=head1 INSTALLATION
424
425 $ cpanm https://github.com/KorAP/KorAP-XML-CoNLL-U.git
426
427=head1 OPTIONS
428
429=over 2
430
431=item B<--force-foundry|-f>
432
433Set foundry name and ignore foundry names in the input.
434
Akron8dabdc12026-06-02 16:36:07 +0200435=item B<--text-sigle|-s>
436
437Text sigle template with C<{ID}> placeholder for standard UD CoNLL-U
438input. When C<# newdoc id = E<lt>IDE<gt>> is encountered, C<{ID}> is
439replaced by the document id to derive the KorAP-XML text sigle,
440filename, and docid.
Marc Kupietzdd546a82024-03-22 16:30:09 +0100441
Akron982dd1e2026-06-03 11:52:48 +0200442=item B<--base-text>
443
444Generate a C<data.xml> file containing the reconstructed plain text
445of each document. The text is built from C<# text> comment lines
446in the CoNLL-U input, joined by single spaces.
447
Marc Kupietzaeb84a02021-10-11 17:57:29 +0200448=item B<--help|-h>
449
450Print help information.
451
452=item B<--version|-v>
453
454Print version information.
455
456
457=item B<--log|-l>
458
459Loglevel for I<Log::Any>. Defaults to C<warn>.
460
Marc Kupietz187abd72024-06-25 14:30:01 +0200461=item B<--output|-o>
462
463Output file. Defaults to C<-> (stdout).
464
Marc Kupietzaeb84a02021-10-11 17:57:29 +0200465=back
466
467=head1 EXAMPLES
468
469 conllu2korapxml -f tree_tagger < t/data/wdf19.morpho.conllu > wdf19.tree_tagger.zip
470
Marc Kupietzdd546a82024-03-22 16:30:09 +0100471 conllu2korapxml -f "tree_tagger dependency:malt" < t/data/wdf19.tt-malt.conllu > wdf19.tree_tagger.zip
472
Marc Kupietzaeb84a02021-10-11 17:57:29 +0200473=head1 COPYRIGHT AND LICENSE
474
Akron249fc832024-06-04 16:36:44 +0200475Copyright (C) 2021-2024, L<IDS Mannheim|https://www.ids-mannheim.de/>
Marc Kupietzaeb84a02021-10-11 17:57:29 +0200476
477Author: Marc Kupietz
478
479Contributors: Nils Diewald
480
481L<KorAP::XML::CoNNL-U> is developed as part of the L<KorAP|https://korap.ids-mannheim.de/>
482Corpus Analysis Platform at the
483L<Leibniz Institute for the German Language (IDS)|http://ids-mannheim.de/>,
484member of the
485L<Leibniz-Gemeinschaft|http://www.leibniz-gemeinschaft.de/>.
486
487This program is free software published under the
488L<BSD-2 License|https://opensource.org/licenses/BSD-2-Clause>.