NAME
Treex::Block::Util::DefinedAttr - Special block for checking undef
attributes
VERSION
version 2.20151210
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.