Package edu.fiu.jtlex
Class LInguisticEvent
java.lang.Object
edu.fiu.jtlex.LInguisticEvent
- All Implemented Interfaces:
IANode,ILingusticEvent
public class LInguisticEvent extends java.lang.Object implements ILingusticEvent
- Author:
- arada002
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.fiu.jtlex.ILingusticEvent
ILingusticEvent.EventAspect, ILingusticEvent.EventIntent, ILingusticEvent.EventType -
Constructor Summary
Constructors Constructor Description LInguisticEvent(int id, java.lang.String lemma, java.lang.String text, int begin, int end, ILingusticEvent.EventType eventType, ILingusticEvent.EventIntent eventIntent)Creates a new Linguistic Event with the specified information. -
Method Summary
Modifier and Type Method Description intgetBegin()gets the word’s first character position within textintgetEnd()gets the word’s last character position within textILingusticEvent.EventIntentgetEventIntent()an enum that represent the event intent.ILingusticEvent.EventTypegetEventType()An event type that can be REPORTintgetId()id of the anansi; may not be negativejava.lang.StringgetLemma()indicates the ‘head’ or the main term in the noun phrase.edu.fiu.jtlex.data.ILinkgetSLink()SLINK relation linking the Intentional Event and the main eventjava.lang.StringgetText()gets the textual content of the nodeedu.fiu.jtlex.data.IEventtoEvent()Related event instance
-
Constructor Details
-
LInguisticEvent
public LInguisticEvent(int id, java.lang.String lemma, java.lang.String text, int begin, int end, ILingusticEvent.EventType eventType, ILingusticEvent.EventIntent eventIntent)Creates a new Linguistic Event with the specified information.- Parameters:
id- id of the Linguistic Event Number generated as unique identity for the node within the graphlemma- head of the main term in the noun phrasetext- the textual content of the nodebegin- word’s first character position within textend- word’s last character position within texteventType- event type, which maps to class in TimeMLeventIntent- event intent, which maps to class in TimeML
-
-
Method Details
-
getId
public int getId()Description copied from interface:ILingusticEventid of the anansi; may not be negative- Specified by:
getIdin interfaceIANode- Specified by:
getIdin interfaceILingusticEvent
-
getLemma
public java.lang.String getLemma()Description copied from interface:ILingusticEventindicates the ‘head’ or the main term in the noun phrase.- Specified by:
getLemmain interfaceILingusticEvent
-
getText
public java.lang.String getText()Description copied from interface:ILingusticEventgets the textual content of the node- Specified by:
getTextin interfaceILingusticEvent
-
getBegin
public int getBegin()Description copied from interface:ILingusticEventgets the word’s first character position within text- Specified by:
getBeginin interfaceILingusticEvent
-
getEnd
public int getEnd()Description copied from interface:ILingusticEventgets the word’s last character position within text- Specified by:
getEndin interfaceILingusticEvent
-
getEventType
Description copied from interface:ILingusticEventAn event type that can be REPORT- Specified by:
getEventTypein interfaceILingusticEvent
-
getEventIntent
Description copied from interface:ILingusticEventan enum that represent the event intent. It can be ACHIEVEMENT, I_STATE, NEGATIVE_I_STATE, POSITIVE_ACTION, or NEGATIVE_ACTION- Specified by:
getEventIntentin interfaceILingusticEvent
-
toEvent
public edu.fiu.jtlex.data.IEvent toEvent()Description copied from interface:ILingusticEventRelated event instance- Specified by:
toEventin interfaceILingusticEvent
-
getSLink
public edu.fiu.jtlex.data.ILink getSLink()Description copied from interface:ILingusticEventSLINK relation linking the Intentional Event and the main event- Specified by:
getSLinkin interfaceILingusticEvent
-