Treex::Core::Node::InClause
version 0.06571
Moose role for nodes in trees where (linguistic) clauses can be recognized based on attributes clause_number and is_clause_head.
clause_number
is_clause_head
Ordinal number that is shared by all nodes of a same clause.
Is this node a head of a finite clause.
Returns the head node of a clause. This implementation is based on the attribute clause_number. Note that it may give different results than get_clause_head.
get_clause_head
Returns the head node of a clause. This implementation is based on the attribute is_clause_head. Note that it may give different results than get_clause_root.
get_clause_root
Returns those descendants which are in the same clause as $node. The current implementation is based on the attribute is_clause_head.
$node
Returns all nodes of the clause (to which the $node belongs). The current implementation is based on the attribute clause_number.
Martin Popel <popel@ufal.mff.cuni.cz>
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.
To install Treex::Core, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Treex::Core
CPAN shell
perl -MCPAN -e shell install Treex::Core
For more information on module installation, please visit the detailed CPAN module installation guide.