Package edu.fiu.jtlex
Class LinguisticEvent
java.lang.Object
edu.fiu.jtlex.LinguisticEvent
- All Implemented Interfaces:
IANode,ILinguisticEvent
Default implementation of
ILinguisticEvent.- Author:
- dchan054, arada002
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.fiu.jtlex.ILinguisticEvent
ILinguisticEvent.EventAspect, ILinguisticEvent.EventIntent, ILinguisticEvent.EventType, ILinguisticEvent.VerbTime -
Constructor Summary
ConstructorsConstructorDescriptionLinguisticEvent(int id, String lemma, String text, int begin, int end, ILinguisticEvent.EventType eventType, ILinguisticEvent.EventIntent eventIntent, ILinguisticEvent.EventAspect eventAspect, ITerm term, ILinguisticEvent.VerbTime verbTime, Boolean negated, Date linguisticStartDate, Date linguisticEndDate)Creates a new Linguistic Event with the specified information. -
Method Summary
Modifier and TypeMethodDescriptionintgetBegin()Returns the position of first character of the linguistic event expression in the text.intgetEnd()Returns the position of last character of the linguistic event expression in the text.Returns the aspect of the linguistic event.The intent of the event.The event type of the given linguistic event.intgetId()The integer ID if the Linguistic Event Node.getLemma()Returns the string representing the head's or the main term in the noun phrase.Returns the string representing the end date.Returns the string representing the start date.getTerm()The main term associated with the linguistic event.getText()returns the textual content of the node.Returns the tense of the verb.Boolean representing whether the linguistic event is negated.
-
Constructor Details
-
LinguisticEvent
public LinguisticEvent(int id, String lemma, String text, int begin, int end, ILinguisticEvent.EventType eventType, ILinguisticEvent.EventIntent eventIntent, ILinguisticEvent.EventAspect eventAspect, ITerm term, ILinguisticEvent.VerbTime verbTime, Boolean negated, Date linguisticStartDate, Date linguisticEndDate)Creates a new Linguistic Event with the specified information.- Parameters:
id- id of the Linguistic Event Nodelemma- head of the main term in the noun phrasetext- the text of the event phrasebegin- position of the first character of the phrase in the textend- position of the last character of the phrase in the texteventType- event type, which maps to class in TimeMLeventIntent- event intent, which maps to class in TimeMLeventAspect- event aspect, which maps to class in TimeMLverbTime- tense of the verbnegated- represents whether the linguistic event is negatedlinguisticStartDate- the start date of the linguistic eventlinguisticEndDate- the end date of the linguistic event
-
-
Method Details
-
getId
public int getId()Description copied from interface:ILinguisticEventThe integer ID if the Linguistic Event Node.- Specified by:
getIdin interfaceIANode- Specified by:
getIdin interfaceILinguisticEvent
-
getLemma
Description copied from interface:ILinguisticEventReturns the string representing the head's or the main term in the noun phrase.- Specified by:
getLemmain interfaceILinguisticEvent
-
getText
Description copied from interface:ILinguisticEventreturns the textual content of the node.- Specified by:
getTextin interfaceIANode- Specified by:
getTextin interfaceILinguisticEvent
-
getBegin
public int getBegin()Description copied from interface:ILinguisticEventReturns the position of first character of the linguistic event expression in the text.- Specified by:
getBeginin interfaceIANode- Specified by:
getBeginin interfaceILinguisticEvent
-
getEnd
public int getEnd()Description copied from interface:ILinguisticEventReturns the position of last character of the linguistic event expression in the text.- Specified by:
getEndin interfaceIANode- Specified by:
getEndin interfaceILinguisticEvent
-
getEventType
Description copied from interface:ILinguisticEventThe event type of the given linguistic event.- Specified by:
getEventTypein interfaceILinguisticEvent- Returns:
- EventType enum
-
getEventIntent
Description copied from interface:ILinguisticEventThe intent of the event.- Specified by:
getEventIntentin interfaceILinguisticEvent- Returns:
- EventIntent enum
-
getEventAspect
Description copied from interface:ILinguisticEventReturns the aspect of the linguistic event.- Specified by:
getEventAspectin interfaceILinguisticEvent- Returns:
- EventAspect enum
-
getTerm
Description copied from interface:ILinguisticEventThe main term associated with the linguistic event.- Specified by:
getTermin interfaceILinguisticEvent- Returns:
- ITerm term
-
getVerbTime
Description copied from interface:ILinguisticEventReturns the tense of the verb.- Specified by:
getVerbTimein interfaceILinguisticEvent- Returns:
- VerbTime verbTime
-
isNegated
Description copied from interface:ILinguisticEventBoolean representing whether the linguistic event is negated.- Specified by:
isNegatedin interfaceILinguisticEvent- Returns:
if it is negated if it is not negated
-
getLinguisticStartDate
Description copied from interface:ILinguisticEventReturns the string representing the start date.- Specified by:
getLinguisticStartDatein interfaceILinguisticEvent
-
getLinguisticEndDate
Description copied from interface:ILinguisticEventReturns the string representing the end date.- Specified by:
getLinguisticEndDatein interfaceILinguisticEvent
-