public interface DependencyNode extends ComparableNode
| Modifier and Type | Method and Description |
|---|---|
void |
addHeadEdgeLabel(LabelSet labelSet) |
void |
addHeadEdgeLabel(SymbolTable table,
int code) |
void |
addHeadEdgeLabel(SymbolTable table,
java.lang.String symbol) |
DependencyNode |
findComponent() |
DependencyNode |
getAncestor() |
DependencyNode |
getClosestLeftDependent()
Returns the closest left dependent to the node it self, if not found
null is returned. |
DependencyNode |
getClosestRightDependent()
Returns the closest right dependent to the node it self, if not found
null is returned. |
DependencyNode |
getComponent() |
int |
getDependencyNodeDepth()
Returns the depth of the node.
|
DependencyNode |
getHead()
Returns the head dependency node if it exists, otherwise null.
|
Edge |
getHeadEdge()
Returns the edge between the head and the node if it exists, otherwise null.
|
int |
getHeadEdgeLabelCode(SymbolTable table) |
LabelSet |
getHeadEdgeLabelSet() |
java.lang.String |
getHeadEdgeLabelSymbol(SymbolTable table) |
java.util.Set<SymbolTable> |
getHeadEdgeLabelTypes() |
java.util.Set<Edge> |
getHeadEdges() |
java.util.Set<DependencyNode> |
getHeads() |
DependencyNode |
getLeftDependent(int index)
Returns the left dependent at the position index, where index==0 equals the left most dependent.
|
int |
getLeftDependentCount()
Return the number of left dependents
|
java.util.SortedSet<DependencyNode> |
getLeftDependents()
Returns a sorted set of left dependents.
|
DependencyNode |
getLeftmostDependent() |
DependencyNode |
getLeftSibling()
Returns the left sibling if it exists, otherwise
null |
java.util.List<DependencyNode> |
getListOfDependents() |
java.util.List<DependencyNode> |
getListOfLeftDependents() |
java.util.List<DependencyNode> |
getListOfRightDependents() |
DependencyNode |
getPredecessor()
Returns the predecessor dependency node in the linear order of the token nodes.
|
DependencyNode |
getProperAncestor() |
int |
getRank() |
DependencyNode |
getRightDependent(int index) |
int |
getRightDependentCount()
Return the number of right dependents
|
java.util.SortedSet<DependencyNode> |
getRightDependents()
Returns a sorted set of right dependents.
|
DependencyNode |
getRightmostDependent() |
DependencyNode |
getRightSibling()
Returns the right sibling if it exists, otherwise
null |
DependencyNode |
getSameSideLeftSibling()
Returns the left sibling at the same side of head as the node it self.
|
DependencyNode |
getSameSideRightSibling()
Returns the right sibling at the same side of head as the node it self.
|
DependencyNode |
getSuccessor()
Returns the successor dependency node in the linear order of the token nodes.
|
boolean |
hasAncestorInside(int left,
int right) |
boolean |
hasAtMostOneHead()
Returns true if the node has at most one head, otherwise false.
|
boolean |
hasDependent() |
boolean |
hasHead()
Returns true if the node has one or more head(s), otherwise false.
|
boolean |
hasHeadEdgeLabel(SymbolTable table) |
boolean |
hasLeftDependent()
Returns true if the node has one or more left dependents, otherwise false.
|
boolean |
hasRightDependent() |
boolean |
isHeadEdgeLabeled() |
boolean |
isProjective()
Returns true if the head edge is projective, otherwise false.
|
int |
nHeadEdgeLabels() |
void |
setComponent(DependencyNode x) |
void |
setRank(int r) |
getCompareToIndex, getIncomingSecondaryEdges, getInDegree, getIndex, getLeftmostDescendant, getLeftmostDescendantIndex, getLeftmostProperDescendant, getLeftmostProperDescendantIndex, getOutDegree, getOutgoingSecondaryEdges, getRightmostDescendant, getRightmostDescendantIndex, getRightmostProperDescendant, getRightmostProperDescendantIndex, isRootaddLabel, addLabel, addLabel, clear, getBelongsToGraph, getLabelCode, getLabelSet, getLabelSymbol, getLabelTypes, hasLabel, isLabeled, nLabels, removeLabel, removeLabels, setBelongsToGraphboolean hasAtMostOneHead()
boolean hasHead()
java.util.Set<DependencyNode> getHeads() throws MaltChainedException
MaltChainedExceptionjava.util.Set<Edge> getHeadEdges() throws MaltChainedException
MaltChainedExceptionDependencyNode getPredecessor()
DependencyNode getSuccessor()
DependencyNode getHead() throws MaltChainedException
MaltChainedExceptionEdge getHeadEdge() throws MaltChainedException
MaltChainedExceptionboolean hasAncestorInside(int left, int right) throws MaltChainedException
MaltChainedExceptionvoid addHeadEdgeLabel(SymbolTable table, java.lang.String symbol) throws MaltChainedException
MaltChainedExceptionvoid addHeadEdgeLabel(SymbolTable table, int code) throws MaltChainedException
MaltChainedExceptionvoid addHeadEdgeLabel(LabelSet labelSet) throws MaltChainedException
MaltChainedExceptionboolean hasHeadEdgeLabel(SymbolTable table) throws MaltChainedException
MaltChainedExceptionjava.lang.String getHeadEdgeLabelSymbol(SymbolTable table) throws MaltChainedException
MaltChainedExceptionint getHeadEdgeLabelCode(SymbolTable table) throws MaltChainedException
MaltChainedExceptionboolean isHeadEdgeLabeled() throws MaltChainedException
MaltChainedExceptionint nHeadEdgeLabels() throws MaltChainedException
MaltChainedExceptionjava.util.Set<SymbolTable> getHeadEdgeLabelTypes() throws MaltChainedException
MaltChainedExceptionLabelSet getHeadEdgeLabelSet() throws MaltChainedException
MaltChainedExceptionDependencyNode getAncestor() throws MaltChainedException
MaltChainedExceptionDependencyNode getProperAncestor() throws MaltChainedException
MaltChainedExceptionboolean hasDependent()
boolean hasLeftDependent()
DependencyNode getLeftDependent(int index)
index - the indexint getLeftDependentCount()
java.util.SortedSet<DependencyNode> getLeftDependents()
DependencyNode getLeftSibling() throws MaltChainedException
nullnullMaltChainedExceptionDependencyNode getSameSideLeftSibling() throws MaltChainedException
null is returnednull is returnedMaltChainedExceptionDependencyNode getClosestLeftDependent()
null is returned.null is returned.DependencyNode getLeftmostDependent()
DependencyNode getRightDependent(int index)
int getRightDependentCount()
java.util.SortedSet<DependencyNode> getRightDependents()
DependencyNode getRightSibling() throws MaltChainedException
nullnullMaltChainedExceptionDependencyNode getSameSideRightSibling() throws MaltChainedException
null is returnednull is returnedMaltChainedExceptionDependencyNode getClosestRightDependent()
null is returned.null is returned.DependencyNode getRightmostDependent()
boolean hasRightDependent()
java.util.List<DependencyNode> getListOfDependents()
java.util.List<DependencyNode> getListOfLeftDependents()
java.util.List<DependencyNode> getListOfRightDependents()
boolean isProjective() throws MaltChainedException
MaltChainedExceptionint getDependencyNodeDepth() throws MaltChainedException
MaltChainedExceptionint getRank()
void setRank(int r)
DependencyNode findComponent()
DependencyNode getComponent()
void setComponent(DependencyNode x)
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.