brat2relationlist.pl - Perl script for printing the list of relations between terms in the brat file
brat2relationlist.pl [options]
where option can be --help --man --verbose
Specification of the name of the directory containing the input files. Several directories can be specified.
Specification of the name of an input file (either the text or annotation file). Several input files can be specified.
Specification of the name of the output file. The filename can be - to print the results on the standard output.
-
Specification of the list of files to concatenate. Each line contains one file name.
print help message for using brat2relationlist.pl
print man page of brat2relationlist.pl
Go into the verbose mode
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.
Print the relations of all the files in the directory examples in the file relationlist1.txt.
examples
relationlist1.txt
brat2relationlist.pl -d examples -o relationslist1.txt
Print the relations of all the three file in the file relationlist2.txt.
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.
examples/list.txt
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
http://brat.nlplab.org/
Thierry Hamon, <hamon@limsi.fr>
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.
To install Brat::Handler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Brat::Handler
CPAN shell
perl -MCPAN -e shell install Brat::Handler
For more information on module installation, please visit the detailed CPAN module installation guide.