Package edu.fiu.jtlex
Class Term
java.lang.Object
edu.fiu.jtlex.Term
- Author:
- jjime178 The default implementation of
ITerm. added tense added aspect
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.fiu.jtlex.ITerm
ITerm.ATense, ITerm.NamedEntity, ITerm.PartOfSpeech -
Constructor Summary
ConstructorsConstructorDescriptionTerm(int id, String lemma, String frameSet, String text, String sentenceId, int begin, int end, ITerm.PartOfSpeech pos, String elementId, String timexText, ITerm.NamedEntity namedEntity, String normalizedNER, ITimex.TimexType timexType, String tid, ITerm.ATense tense, IInstance.Aspect aspect)Creates a new Term with the specified information. -
Method Summary
Modifier and TypeMethodDescriptionRepresents the aspect of an event instance phrase.intgetBegin()Word�s first character position within text.Contains id of element (Can be verbs, nouns, clauses, sentences).intgetEnd()Term's last character position within text.Composed of the lemma and the sense associated with it (Can check Wordnet).intgetId()Each term has to be identified by a unique ID number.getLemma()Each head of the main term in the noun phrase.Marks the Term as an Entity type.Normalized text after NER annotation.getPos()Term's pos tagging.ID of sentence attached to term.getTense()Grammatical Tense of the Term.getText()Text being referred to by term.getTid()Each timex has to be identified by a unique ID number.Each timex has text associated with it.TimexType of term.
-
Constructor Details
-
Term
public Term(int id, String lemma, String frameSet, String text, String sentenceId, int begin, int end, ITerm.PartOfSpeech pos, String elementId, String timexText, ITerm.NamedEntity namedEntity, String normalizedNER, ITimex.TimexType timexType, String tid, ITerm.ATense tense, IInstance.Aspect aspect)Creates a new Term with the specified information.- Parameters:
id- id of the Term, generated as unique identity for the node within the graph; may not be negativelemma- head of the main term in the noun phrase; may not be nullframeSet- lemma and sense of lemma (Can be seen in WordNet); optionaltext- the textual content of the node; may not be nullsentenceId- id of sentence; optionalbegin- words first character position within text; may not be negativeend- words last character position within text; needs to be greater than begin and not negativepos- part of speech tag attached to text; may not be nullelementId- id of the element (verbs, nouns, clauses, sentences); may not be nulltimexText- text of the timex; optionalnamedEntity- the Stanford CoreNLP Entity Tag associated with the Term; optionalnormalizedNER- normalized text after passed through NER (Named-Entity-Recognizer) annotater; optionaltimexType- the type of the timex; optionaltid- id of the timex; optionaltense- tense of the phraseaspect- represents the aspect of the phrase
-
-
Method Details
-
getId
public int getId()Description copied from interface:ITermEach term has to be identified by a unique ID number. This value is not optional. Returns the id of the term. -
getLemma
Description copied from interface:ITermEach head of the main term in the noun phrase. Returns the main term as a string. -
getFrameSet
Description copied from interface:ITermComposed of the lemma and the sense associated with it (Can check Wordnet). Returns the lemma and sense seperated by a '.'.- Specified by:
getFrameSetin interfaceITerm- Returns:
- frameSet string may not be null
-
getText
Description copied from interface:ITermText being referred to by term. Returns the text. -
getSentenceId
Description copied from interface:ITermID of sentence attached to term. Returns the id of the sentence.- Specified by:
getSentenceIdin interfaceITerm- Returns:
- sentenceID integer may not be negative
-
getBegin
public int getBegin()Description copied from interface:ITermWord�s first character position within text. Returns the integer position of first character. -
getEnd
public int getEnd()Description copied from interface:ITermTerm's last character position within text. Returns the integer position of last character. -
getPos
Description copied from interface:ITermTerm's pos tagging. Returns the pos tag associated. -
getElementId
Description copied from interface:ITermContains id of element (Can be verbs, nouns, clauses, sentences). Returns the id of element.- Specified by:
getElementIdin interfaceITerm- Returns:
- elementId integer may not be negative
-
getTimexText
Description copied from interface:ITermEach timex has text associated with it. Returns the text tied to the timex.- Specified by:
getTimexTextin interfaceITerm- Returns:
- timexText string may not be null
-
getNamedEntity
Description copied from interface:ITermMarks the Term as an Entity type. Returns the type to which the term belongs.- Specified by:
getNamedEntityin interfaceITerm- Returns:
- NamedEntity enum may not be null.
-
getNormalizedNER
Description copied from interface:ITermNormalized text after NER annotation. Returns the NER annotated text.- Specified by:
getNormalizedNERin interfaceITerm- Returns:
- normalizedNER string may not be null
-
getTimexType
Description copied from interface:ITermTimexType of term. Returns the timex type to which the object belongs.- Specified by:
getTimexTypein interfaceITerm- Returns:
- TimexType enum may not be null.
-
getTid
Description copied from interface:ITermEach timex has to be identified by a unique ID number. This value is not optional. Returns the string part of the timexId. -
getTense
Description copied from interface:ITermGrammatical Tense of the Term. This value is optional. -
getAspect
Description copied from interface:ITermRepresents the aspect of an event instance phrase.
-