Treex::Tool::Parser::MSTperl::Edge
version 0.11949
Represents a dependency edge (i.e. a pair of nodes where one of them is a parent to the other one which is its child).
The child (dependent) node (Treex::Tool::Parser::MSTperl::Node) of the edge.
The parent (governing, head) node of the edge.
The one of child and parent which comes first in the sentence ("ord" in Treex::Tool::Parser::MSTperl::Node).
child
parent
Filled automatically when edge is created.
The one of child and parent which comes second in the sentence (i.e. the one which is not in the first field)
first
The sentence (Treex::Tool::Parser::MSTperl::Sentence) which contains the nodes (child and parent).
Initializes an instance of an edge between the child node and the parent node (instances of Treex::Tool::Parser::MSTperl::Node) in the given sentence (Treex::Tool::Parser::MSTperl::Sentence).
sentence
String uniquely identifying the edge, composed of sentence id ("id" in Treex::Tool::Parser::MSTperl::Sentence), ords of the edge nodes ("ord" in Treex::Tool::Parser::MSTperl::Node) and label of the edge (which is stored with the child node - "label" in Treex::Tool::Parser::MSTperl::Node). Used to identify the edge in the edge features cache ("edge_features_cache" in Treex::Tool::Parser::MSTperl::FeaturesControl).
id
ord
Rudolf Rosa <rosa@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::Tool::Parser::MSTperl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Treex::Tool::Parser::MSTperl
CPAN shell
perl -MCPAN -e shell install Treex::Tool::Parser::MSTperl
For more information on module installation, please visit the detailed CPAN module installation guide.