The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

brat2relationlist.pl - Perl script for printing the list of relations between terms in the brat file

SYNOPSIS

brat2relationlist.pl [options]

where option can be --help --man --verbose

OPTIONS AND ARGUMENTS

--input-dir <filename>, -d <filename>

Specification of the name of the directory containing the input files. Several directories can be specified.

--input-file <filename>, -i <filename>

Specification of the name of an input file (either the text or annotation file). Several input files can be specified.

--output-file <filename>, -o <filename>

Specification of the name of the output file. The filename can be - to print the results on the standard output.

--file-list <filename>, -l <filename>

Specification of the list of files to concatenate. Each line contains one file name.

--help

print help message for using brat2relationlist.pl

--man

print man page of brat2relationlist.pl

--verbose

Go into the verbose mode

DESCRIPTION

This script prints the relations between terms of several files which have been annotated with Brat (<http://brat.nlplab.org/>). The output file can be specified. Otherwise, terms are printed on the standard output.

EXAMPLES

Print the relations of all the files in the directory examples in the file relationlist1.txt.

   brat2relationlist.pl -d examples -o relationslist1.txt

Print the relations of all the three file in the file relationlist2.txt.

   brat2relationlist.pl -i examples/taln-2012-long-001-resume.txt -i examples/taln-2012-long-002-resume.ann -i examples/taln-2012-long-003-resume.txt -o relationlist2.txt

Print the relations of all the files indicated in examples/list.txt in the file relationlist3.txt.

   brat2relationlist.pl -l examples/list.txt -o relationlist3.txt

Print the relations of all the files indicated in examples/list.txt on the standard output.

   brat2relationlist.pl -l examples/list.txt

SEE ALSO

http://brat.nlplab.org/

AUTHOR

Thierry Hamon, <hamon@limsi.fr>

COPYRIGHT AND LICENSE

Copyright (C) 2015 Thierry Hamon

This is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.