Treex::Tool::Parser::MSTperl::Writer
version 0.11949
Writes Treex::Tool::Parser::MSTperl::Sentence instances to a CoNLL-like TSV file (one line corresponds to one node, its features separated by tabs, sentence boundary is represented by an empty line).
Takes a reference to an array of sentences $sentences (instances of Treex::Tool::Parser::MSTperl::Sentence) and writes them to file $filename.
$sentences
$filename
The structure of the file (the order of the fields) is determined by the config field (instance of Treex::Tool::Parser::MSTperl::Config), specifically by the field_names setting.
config
field_names
Rudolf Rosa <rosa@ufal.mff.cuni.cz>
Copyright © 2011 by Institute of Formal and Applied Linguistics, Charles University in Prague
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Treex::Tool::Parser::MSTperl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Treex::Tool::Parser::MSTperl
CPAN shell
perl -MCPAN -e shell install Treex::Tool::Parser::MSTperl
For more information on module installation, please visit the detailed CPAN module installation guide.