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, isRoot
addLabel, addLabel, addLabel, clear, getBelongsToGraph, getLabelCode, getLabelSet, getLabelSymbol, getLabelTypes, hasLabel, isLabeled, nLabels, removeLabel, removeLabels, setBelongsToGraph
boolean hasAtMostOneHead()
boolean hasHead()
java.util.Set<DependencyNode> getHeads() throws MaltChainedException
MaltChainedException
java.util.Set<Edge> getHeadEdges() throws MaltChainedException
MaltChainedException
DependencyNode getPredecessor()
DependencyNode getSuccessor()
DependencyNode getHead() throws MaltChainedException
MaltChainedException
Edge getHeadEdge() throws MaltChainedException
MaltChainedException
boolean hasAncestorInside(int left, int right) throws MaltChainedException
MaltChainedException
void addHeadEdgeLabel(SymbolTable table, java.lang.String symbol) throws MaltChainedException
MaltChainedException
void addHeadEdgeLabel(SymbolTable table, int code) throws MaltChainedException
MaltChainedException
void addHeadEdgeLabel(LabelSet labelSet) throws MaltChainedException
MaltChainedException
boolean hasHeadEdgeLabel(SymbolTable table) throws MaltChainedException
MaltChainedException
java.lang.String getHeadEdgeLabelSymbol(SymbolTable table) throws MaltChainedException
MaltChainedException
int getHeadEdgeLabelCode(SymbolTable table) throws MaltChainedException
MaltChainedException
boolean isHeadEdgeLabeled() throws MaltChainedException
MaltChainedException
int nHeadEdgeLabels() throws MaltChainedException
MaltChainedException
java.util.Set<SymbolTable> getHeadEdgeLabelTypes() throws MaltChainedException
MaltChainedException
LabelSet getHeadEdgeLabelSet() throws MaltChainedException
MaltChainedException
DependencyNode getAncestor() throws MaltChainedException
MaltChainedException
DependencyNode getProperAncestor() throws MaltChainedException
MaltChainedException
boolean hasDependent()
boolean hasLeftDependent()
DependencyNode getLeftDependent(int index)
index
- the indexint getLeftDependentCount()
java.util.SortedSet<DependencyNode> getLeftDependents()
DependencyNode getLeftSibling() throws MaltChainedException
null
null
MaltChainedException
DependencyNode getSameSideLeftSibling() throws MaltChainedException
null
is returnednull
is returnedMaltChainedException
DependencyNode getClosestLeftDependent()
null
is returned.null
is returned.DependencyNode getLeftmostDependent()
DependencyNode getRightDependent(int index)
int getRightDependentCount()
java.util.SortedSet<DependencyNode> getRightDependents()
DependencyNode getRightSibling() throws MaltChainedException
null
null
MaltChainedException
DependencyNode getSameSideRightSibling() throws MaltChainedException
null
is returnednull
is returnedMaltChainedException
DependencyNode 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
MaltChainedException
int getDependencyNodeDepth() throws MaltChainedException
MaltChainedException
int getRank()
void setRank(int r)
DependencyNode findComponent()
DependencyNode getComponent()
void setComponent(DependencyNode x)
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.