Package edu.fiu.jtlex
Class CompoundTerm
java.lang.Object
edu.fiu.jtlex.CompoundTerm
- All Implemented Interfaces:
IANode,ICompoundTerm
public class CompoundTerm extends java.lang.Object implements ICompoundTerm
- Author:
- arada002
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description CompoundTerm(int id, ICompoundTerm.Label[] labels, java.lang.String lemma, edu.fiu.jtlex.data.ITimex.TimexType timexType, int begin, int end, java.lang.String text, ITerm.PartOfSpeech pos, int elementID, java.lang.String tense, java.lang.String aspect, java.lang.String timexText, java.lang.String duration, Term[] terms) -
Method Summary
Modifier and Type Method Description java.lang.StringgetAspect()the aspectual facet (telicity) of the main event.intgetBegin()chracter begins onjava.lang.StringgetDuration()the durational facet of the main event.intgetElementID()number of nodeintgetEnd()character ends onintgetId()id of the anansi; may not be negativeICompoundTerm.Label[]getLabels()Tags categoryjava.lang.StringgetLemma()indicates the ‘head’ or the main term in the noun phrase.ITerm.PartOfSpeechgetPos()part of speechjava.lang.StringgetTense()past present futureTerm[]getTerms()represented as a Contains relation.java.lang.StringgetText()raw textjava.lang.StringgetTimexText()raw textedu.fiu.jtlex.data.ITimex.TimexTypegetTimexType()Durationjava.lang.StringgetVoice()Tags category
-
Constructor Details
-
CompoundTerm
public CompoundTerm(int id, ICompoundTerm.Label[] labels, java.lang.String lemma, edu.fiu.jtlex.data.ITimex.TimexType timexType, int begin, int end, java.lang.String text, ITerm.PartOfSpeech pos, int elementID, java.lang.String tense, java.lang.String aspect, java.lang.String timexText, java.lang.String duration, Term[] terms)- Parameters:
id- id of the anansi; may not be negativelabels- Tags categorylemma- indicates the ‘head’ or the main term in the noun phrase.timexType- Durationbegin- character it beginsend- character it endstext- raw textpos- part of speechelementID- node numbertense- present past futureaspect- the aspectual facet (telicity) of the main event.timexText-duration- the durational facet of the main event.terms- represented as a Contains relation.
-
-
Method Details
-
getId
public int getId()id of the anansi; may not be negative- Specified by:
getIdin interfaceIANode- Specified by:
getIdin interfaceICompoundTerm- Returns:
- id
-
getLabels
Tags category- Specified by:
getLabelsin interfaceICompoundTerm- Returns:
- labels
-
getLemma
public java.lang.String getLemma()indicates the ‘head’ or the main term in the noun phrase.- Specified by:
getLemmain interfaceICompoundTerm- Returns:
- lemma
-
getTimexType
public edu.fiu.jtlex.data.ITimex.TimexType getTimexType()Duration- Specified by:
getTimexTypein interfaceICompoundTerm- Returns:
- timexType
-
getBegin
public int getBegin()chracter begins on- Specified by:
getBeginin interfaceICompoundTerm- Returns:
- begin
-
getEnd
public int getEnd()character ends on- Specified by:
getEndin interfaceICompoundTerm- Returns:
- end
-
getText
public java.lang.String getText()raw text- Specified by:
getTextin interfaceICompoundTerm- Returns:
- text
-
getPos
part of speech- Specified by:
getPosin interfaceICompoundTerm- Returns:
- pos
-
getElementID
public int getElementID()number of node- Specified by:
getElementIDin interfaceICompoundTerm- Returns:
- elementID
-
getTense
public java.lang.String getTense()past present future- Specified by:
getTensein interfaceICompoundTerm- Returns:
- tense
-
getAspect
public java.lang.String getAspect()the aspectual facet (telicity) of the main event.- Specified by:
getAspectin interfaceICompoundTerm- Returns:
- aspect
-
getVoice
public java.lang.String getVoice()Tags category- Specified by:
getVoicein interfaceICompoundTerm- Returns:
- timexText
-
getDuration
public java.lang.String getDuration()the durational facet of the main event.- Specified by:
getDurationin interfaceICompoundTerm- Returns:
- duration
-
getTimexText
public java.lang.String getTimexText()raw text- Specified by:
getTimexTextin interfaceICompoundTerm- Returns:
- timexText
-
getTerms
represented as a Contains relation.- Returns:
- terms
-