Interface WordDataI
- All Superinterfaces:
Serializable
This interface defines the data associated with a word identified in a
sentence.
It provides access to the original form of the word and its start and end character index in the sentence text,
the simplified form and the final form of the word. It also provides access to a collection of arbitrary properties
attached to a word.-
Method Summary
Modifier and TypeMethodDescriptionintReturns the character index of the beginning of this word in the sentence text.intReturns the index of the character right after the end of this word in the sentence text.getFinal()Returns the final form of this word.Returns the original form of this word.Returns the properties attached to this word.Returns the simplified form of this word.voidSets the final form of this word to the given value.voidsetSimplified(String _sSimplified) Sets the simplified form of this word to the given value.
-
Method Details
-
getOriginal
String getOriginal()Returns the original form of this word. -
getBeginIndex
int getBeginIndex()Returns the character index of the beginning of this word in the sentence text. -
getEndIndex
int getEndIndex()Returns the index of the character right after the end of this word in the sentence text. -
getSimplified
String getSimplified()Returns the simplified form of this word. -
setSimplified
Sets the simplified form of this word to the given value.- Throws:
IllegalArgumentException- if the given argument isnull
-
getFinal
String getFinal()Returns the final form of this word. -
setFinal
Sets the final form of this word to the given value.- Throws:
IllegalArgumentException- if the given argument isnull
-
getProperties
Returns the properties attached to this word.
-