NAME
Treex::Core::Node::A
VERSION
version 0.05222
DESCRIPTION
a-layer (analytical) node
METHODS
Links from a-trees to phrase-structure trees
- $node->get_terminal_pnode
-
Returns a terminal node from the phrase-structure tree that corresponds to the a-node.
- $node->get_nonterminal_pnodes
-
Returns an array of non-terminal nodes from the phrase-structure tree that correspond to the a-node.
- $node->get_pnodes
-
Returns the corresponding terminal node and all non-terminal nodes.
Other
- reset_morphcat
- get_pml_type_name
-
Root and non-root nodes have different PML type in the pml schema (a-root.type, a-node.type)
- is_coap_root
-
Is this node a root (or head) of a coordination/apposition construction? On a-layer this is decided based on
afun =~ /^(Coord|Apos)$/
. - get_n_node()
-
If this a-node is a part of a named entity, this method returns the corresponding n-node (Treex::Core::Node::N). If this node is a part of more than one named entities, only the most nested one is returned. For example: "Bank of China"
$n_node_for_china = $a_node_china->get_n_node(); print $n_node_for_china->get_attr('normalized_name'); # China $n_node_for_bank_of_china = $n_node_for_china->get_parent(); print $n_node_for_bank_of_china->get_attr('normalized_name'); # Bank of China
- $node->get_subtree_string
-
Return the string coresponding to a subtree rooted in
$node
. It's computed based on attributesform
andno_space_after
.
AUTHOR
Zdeněk Žabokrtský <zabokrtsky@ufal.mff.cuni.cz>
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.