
Treex::Tool::Parser::MSTperl::Writer

version 0.08268

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

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.