Class GraphNode
java.lang.Object
org.episteme.social.linguistics.loaders.tigerxml.GraphNode
- All Implemented Interfaces:
Serializable, Identified<Identification>
Represents a node in the syntax tree, either a terminal node or a
non-terminal node.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this node occurs after another node in the sentence.booleanChecks if this node occurs before another node in the sentence.protected abstract voidbuildTreeString(int depth, StringBuilder sb) booleanbooleangetDescendantsByLabel(String label) Returns all descendants (recursive) that have the given edge label to their mother.getEdge2SecMother(NT sMother) getId()Returns the unique identifier of this entity.intgetIndex()abstract StringgetText()intinthashCode()booleanbooleanbooleanisDominatedBy(String cat) booleanisDominatedBy(GraphNode node) abstract booleanvoidsetEdge2Mother(String edge2mother) voidvoidsetId(Identification id) voidsetIndex(int index) voidvoidsetSecMother(NT mother, String label) voidsetSentence(Sentence sentence) voidsetVerbosity(int verbosity) toString()
-
Field Details
-
verbosity
protected int verbosity
-
-
Constructor Details
-
GraphNode
protected GraphNode() -
GraphNode
-
-
Method Details
-
isTerminal
public abstract boolean isTerminal() -
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
setId
-
setId
-
getSentence
-
setSentence
-
getCorpus
-
getMother
-
setMother
-
getEdge2Mother
-
setEdge2Mother
-
setSecMother
-
hasSecMothers
public boolean hasSecMothers() -
getSecMothers
-
getEdge2SecMother
-
getIndex
public int getIndex() -
setIndex
public void setIndex(int index) -
toString
-
equals
-
hashCode
-
hasMother
public boolean hasMother() -
getText
-
getDescendantsByLabel
-
before
Checks if this node occurs before another node in the sentence. -
after
Checks if this node occurs after another node in the sentence. -
isDominatedBy
-
getDominatingNodeByCat
-
getPath
-
isDominatedBy
-
dominates
-
toTreeString
-
buildTreeString
-
getVerbosity
public int getVerbosity() -
setVerbosity
public void setVerbosity(int verbosity) -
getLeftmostTerminal
-