|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAnalyzedSentence
public class AnalyzedSentence
A sentence that has been tokenized and analyzed.
| Constructor Summary | |
|---|---|
AnalyzedSentence(AnalyzedTokenReadings[] tokens)
Sets AnalyzedTokenReadings. |
|
AnalyzedSentence(AnalyzedTokenReadings[] tokens,
int[] whPositions)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
getOriginalPosition(int nonWhPosition)
Get a position of a non-whitespace token in the original sentence with whitespace. |
AnalyzedTokenReadings[] |
getTokens()
Returns the AnalyzedTokenReadings of the analyzed text. |
AnalyzedTokenReadings[] |
getTokensWithoutWhitespace()
Returns the AnalyzedTokenReadings of the analyzed text, with
whitespace tokens removed but with the artificial SENT_START
token included. |
int[] |
getWhPositions()
|
int |
hashCode()
|
void |
setNonBlankTokens(AnalyzedTokenReadings[] nonBlankTokens)
|
void |
setWhPositions(int[] whPositions)
|
String |
toString()
|
| Methods inherited from class Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnalyzedSentence(AnalyzedTokenReadings[] tokens)
AnalyzedTokenReadings. Whitespace is also a token.
public AnalyzedSentence(AnalyzedTokenReadings[] tokens,
int[] whPositions)
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic final AnalyzedTokenReadings[] getTokens()
AnalyzedTokenReadings of the analyzed text. Whitespace
is also a token.
public final AnalyzedTokenReadings[] getTokensWithoutWhitespace()
AnalyzedTokenReadings of the analyzed text, with
whitespace tokens removed but with the artificial SENT_START
token included.
public final int getOriginalPosition(int nonWhPosition)
nonWhPosition - Position of a non-whitespace token
public final String toString()
toString in class Objectpublic void setWhPositions(int[] whPositions)
whPositions - the whPositions to setpublic int[] getWhPositions()
public void setNonBlankTokens(AnalyzedTokenReadings[] nonBlankTokens)
nonBlankTokens - the nonBlankTokens to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||