Package edu.fiu.jtlex
Class CompoundTerm
java.lang.Object
edu.fiu.jtlex.CompoundTerm
- All Implemented Interfaces:
IANode,ICompoundTerm
- Author:
- arada002, jposa005
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.fiu.jtlex.ICompoundTerm
ICompoundTerm.Label -
Constructor Summary
ConstructorsConstructorDescriptionCompoundTerm(int id, ICompoundTerm.Label[] labels, String lemma, ITimex.TimexType timexType, int begin, int end, String text, ITerm.PartOfSpeech pos, int elementID, ITerm.ATense tense, IInstance.Aspect aspect, String timexText, String duration, ITerm term, Boolean negated) -
Method Summary
Modifier and TypeMethodDescriptionRepresents the aspect of an event instance phrase.intgetBegin()The durational facet of the main event.intintgetEnd()intgetId()The integer id of the CompoundTerm Node.Labels of the CompoundTermgetLemma()Returns the head or the main term in the noun phrase.getPos()Returns the POS tag.getTense()Grammatical Tense of the Term.getTerm()The main term associated with the linguistic event.getText()Returns the text of the Compound Term Node.Each timex has text associated with it.The timex type of the Compound Term.getVoice()Returns the voice of the Compound Term Node.Boolean representing whether the phrase is negated.
-
Constructor Details
-
CompoundTerm
public CompoundTerm(int id, ICompoundTerm.Label[] labels, String lemma, ITimex.TimexType timexType, int begin, int end, String text, ITerm.PartOfSpeech pos, int elementID, ITerm.ATense tense, IInstance.Aspect aspect, String timexText, String duration, ITerm term, Boolean negated)- Parameters:
id- id of the anansi; may not be negativelabels- label enumslemma- indicates the head or the main term in the noun phrase.timexType- the type of the timex; optionalbegin- position of the first character of the phrase in the textend- position of the last character of the phrase in the texttext- phrase textpos- part of speechelementID- node number //??tense- tense of the phraseaspect- the aspectual facet (telicity) of the main event.timexText- contains information available in time expression and contextduration- the durational facet of the main event.negated- represents whether the compound term is negatedterms- represented as a Contains relation.
-
-
Method Details
-
getId
public int getId()Description copied from interface:ICompoundTermThe integer id of the CompoundTerm Node.- Specified by:
getIdin interfaceIANode- Specified by:
getIdin interfaceICompoundTerm
-
getLabels
Description copied from interface:ICompoundTermLabels of the CompoundTerm- Specified by:
getLabelsin interfaceICompoundTerm- Returns:
- Label[] labels - an array of labels
-
getLemma
Description copied from interface:ICompoundTermReturns the head or the main term in the noun phrase.- Specified by:
getLemmain interfaceICompoundTerm- Returns:
- String lemma
-
getTimexType
Description copied from interface:ICompoundTermThe timex type of the Compound Term.- Specified by:
getTimexTypein interfaceICompoundTerm- Returns:
- TimexType enum
-
getBegin
public int getBegin()- Specified by:
getBeginin interfaceIANode- Specified by:
getBeginin interfaceICompoundTerm
-
getEnd
public int getEnd()- Specified by:
getEndin interfaceIANode- Specified by:
getEndin interfaceICompoundTerm
-
getText
Description copied from interface:ICompoundTermReturns the text of the Compound Term Node.- Specified by:
getTextin interfaceIANode- Specified by:
getTextin interfaceICompoundTerm
-
getPos
Description copied from interface:ICompoundTermReturns the POS tag.- Specified by:
getPosin interfaceICompoundTerm- Returns:
- PartOfSpeech enum may not be null
-
getElementID
public int getElementID()- Specified by:
getElementIDin interfaceICompoundTerm- Returns:
-
getTense
Description copied from interface:ICompoundTermGrammatical Tense of the Term. This value is optional.- Specified by:
getTensein interfaceICompoundTerm- Returns:
- ATense enum
-
getAspect
Description copied from interface:ICompoundTermRepresents the aspect of an event instance phrase.- Specified by:
getAspectin interfaceICompoundTerm- Returns:
- Aspect enum
-
getVoice
Description copied from interface:ICompoundTermReturns the voice of the Compound Term Node. Can be Active, Passive, or NONE- Specified by:
getVoicein interfaceICompoundTerm- Returns:
- String voice
-
getDuration
Description copied from interface:ICompoundTermThe durational facet of the main event.- Specified by:
getDurationin interfaceICompoundTerm- Returns:
- String duration
-
getTimexText
Description copied from interface:ICompoundTermEach timex has text associated with it. Returns the text tied to the timex.- Specified by:
getTimexTextin interfaceICompoundTerm- Returns:
- timexText string may not be null
-
getTerm
Description copied from interface:ICompoundTermThe main term associated with the linguistic event.- Specified by:
getTermin interfaceICompoundTerm- Returns:
- ITerm term
-
isNegated
Description copied from interface:ICompoundTermBoolean representing whether the phrase is negated.- Specified by:
isNegatedin interfaceICompoundTerm- Returns:
if it is negated if it is not negated
-