NAME
Treex::Tool::Parser::MSTperl::Reader
VERSION
version 0.11949
DESCRIPTION
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.
METHODS
- $reader->read_tsv($filename)
-
Reads a TSV file
$filename
, returns a reference to an array of sentences (instances of Treex::Tool::Parser::MSTperl::Sentence).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 thefield_names
setting.
AUTHORS
Rudolf Rosa <rosa@ufal.mff.cuni.cz>
COPYRIGHT AND LICENSE
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.