NAME

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

VERSION

version 0.11949

DESCRIPTION

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

METHODS

$reader->write_tsv($filename, $sentences)

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.

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.