Tomáš Kraut > Treex-Core-0.08663 > Treex::Block::Util::DefinedAttr

Download:
Treex-Core-0.08663.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.08663   Source   Latest Release: Treex-Core-0.08664

NAME ^

Treex::Block::Util::DefinedAttr - Special block for checking undef attributes

VERSION ^

version 0.08663

SYNOPSIS ^

  # on the command line:
  treex Util::DefinedAttr anode=lemma on_error=die -- myfile.treex

  # in a scenario:
  Util::SetGlobal language=en selector=T 
  Util::DefinedAttr tnode=t_lemma,nodetype,formeme
  Block::XY
  Util::DefinedAttr anode=lemma on_error=die message="after block XY"

DESCRIPTION ^

Warns/dies if a given attribute is undefined (in any node).

One of parameters tnode, anode, nnode, pnode must be always specified. By default: on_error=warn and message is empty.

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: