Tomáš Kraut > Treex-Unilang > Treex::Block::Write::CoNLLX

Download:
Treex-Unilang-0.08170.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.08170   Source  

NAME ^

Treex::Block::Write::CoNLLX

VERSION ^

version 0.08170

DESCRIPTION ^

Document writer for CoNLLX format, one token per line.

PARAMETERS ^

encoding

Output encoding. utf8 by default.

to

The name of the output file, STDOUT by default.

deprel_attribute

The name of attribute which will be printed into the 8th column (dependency relation). Default is autodetect which tries first conll/deprel and if it is not defined then afun.

pos_attribute

The name of attribute which will be printed into the 5th column (part-of-speech tag). Default is autodetect which tries first conll/pos and if it is not defined then tag.

cpos_attribute

The name of attribute which will be printed into the 4th column (coarse-grain part-of-speech tag). Default is conll/cpos.

feat_attribute

The name of attribute which will be printed into the 6th column (features). Default is _ which means that an underscore will be printed instead of the features. Possible values are conll/feat and iset.

METHODS ^

process_document

Saves the document.

AUTHOR ^

David Mareček, Daniel Zeman, Martin Popel

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.

syntax highlighting: