Treex::Tool::Parser::MSTperl::Reader
version 0.11949
Reads CoNLL-like TSV file (one line corresponds to one node, its features separated by tabs, sentence boundary is represented by an empty line) and converts it to Treex::Tool::Parser::MSTperl::Node and Treex::Tool::Parser::MSTperl::Sentence instances.
Reads a TSV file $filename, returns a reference to an array of sentences (instances of Treex::Tool::Parser::MSTperl::Sentence).
$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.