|
||||||||||
| 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. |
|
| Method Summary | |
|---|---|
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. |
String |
toString()
|
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnalyzedSentence(AnalyzedTokenReadings[] tokens)
AnalyzedTokenReadings.
Whitespace is also a token.
| Method Detail |
|---|
public 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 Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||