NAME

brat2termlist.pl - Perl script for printing the list of terms in the brat file

SYNOPSIS

brat2termlist.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 brat2termlist.pl

--man

print man page of brat2termlist.pl

--verbose

Go into the verbose mode

DESCRIPTION

This script prints the 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 terms of all the files in the directory examples in the file termlist1.txt.

brat2termlist.pl -d examples -o termlist1.txt

Print the terms of all the three file in the file termlist2.txt.

brat2termlist.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 termlist2.txt

Print the terms of all the files indicated in examples/list.txt in the file termlist3.txt.

brat2termlist.pl -l examples/list.txt -o termlist3.txt

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

brat2termlist.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.