Class T
java.lang.Object
org.episteme.social.linguistics.loaders.tigerxml.GraphNode
org.episteme.social.linguistics.loaders.tigerxml.T
- All Implemented Interfaces:
Serializable, Identified<Identification>
Represents a terminal node in a syntax tree.
*
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildTreeString(int depth, StringBuilder sb) getLemma()Gets the lemma.getMorph()Gets the morphology.getPos()Gets the POS tag.intGets the position of this terminal.getText()getWord()Returns the String of this Terminal.booleanprotected voidprint2XML(FileWriter out_xml) Prints this terminal node to an XML file.voidSets the lemma.voidSets the morphology.voidSets the POS tag.voidsetPosition(int position) Sets the position of this terminal in the sentence.voidSets the surface word.Methods inherited from class GraphNode
after, before, dominates, equals, getCorpus, getDescendantsByLabel, getDominatingNodeByCat, getEdge2Mother, getEdge2SecMother, getId, getIndex, getLeftmostTerminal, getMother, getPath, getSecMothers, getSentence, getVerbosity, hashCode, hasMother, hasSecMothers, isDominatedBy, isDominatedBy, setEdge2Mother, setId, setId, setIndex, setMother, setSecMother, setSentence, setVerbosity, toString, toTreeString
-
Constructor Details
-
T
public T()Creates a new T object. -
T
-
T
-
-
Method Details
-
isTerminal
public boolean isTerminal()- Specified by:
isTerminalin classGraphNode
-
getText
-
buildTreeString
- Specified by:
buildTreeStringin classGraphNode
-
getLemma
-
setLemma
-
getPos
-
setPos
-
getMorph
-
setMorph
Sets the morphology.- Parameters:
newmorph- the new morphology
-
getWord
Returns the String of this Terminal.- Returns:
- The String representation of this Terminal.
-
setWord
-
setPosition
public void setPosition(int position) Sets the position of this terminal in the sentence.- Parameters:
position- the new position
-
getPosition
public int getPosition()Gets the position of this terminal.- Returns:
- the position
-
print2XML
Prints this terminal node to an XML file.- Parameters:
out_xml- the file writer
-