View on
MetaCPAN
Zdeněk Žabokrtský > Treex-Core-0.08399 > Treex::Block::Util::Eval

Download:
Treex-Core-0.08399.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.08399   Source   Latest Release: Treex-Core-2.20160630

NAME ^

Treex::Block::Util::Eval - Special block for evaluating code given by parameters.

VERSION ^

version 0.08399

SYNOPSIS ^

  # 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'

DESCRIPTION ^

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.

AUTHOR ^

Martin Popel <popel@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.

syntax highlighting: