Treex::Block::Util::Eval - Special block for evaluating code given by parameters.
# on the command line treex Util::Eval document='print $document->full_filename' -- *.treex treex Util::Eval language=en anode='print $anode->lemma' -- *.treex # other examples of parameters languages=en,cs zone='print $zone->language, "\t", $zone->sentence' languages=all ttree='print $ttree->language, "\t", scalar $ttree->get_children'
Evaluate an arbitrary Perl code for each document/block/tree/node on the specified layer (according to which parameter is given). The corresponding object is accessible through a variable of the same name.
Martin Popel <email@example.com>
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.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 162:
Non-ASCII character seen before =encoding in '©'. Assuming UTF-8