|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.stanbol.commons.opennlp.TextAnalyzer.AnalysedText
public class TextAnalyzer.AnalysedText
| Nested Class Summary | |
|---|---|
class |
TextAnalyzer.AnalysedText.Chunk
|
class |
TextAnalyzer.AnalysedText.Token
|
| Field Summary | |
|---|---|
protected java.util.List<TextAnalyzer.AnalysedText.Chunk> |
chunks
Final and unmodifiable list
with the chunks of the analysed sentence or null
of no chunks are available |
protected java.lang.String |
language
The language of the analyzed text |
protected java.lang.String |
sentence
The analysed sentence |
protected java.util.List<TextAnalyzer.AnalysedText.Token> |
tokens
Final and unmodifiable list
with the tokens of the analysed sentence. |
| Method Summary | |
|---|---|
java.util.List<TextAnalyzer.AnalysedText.Chunk> |
getChunks()
|
java.lang.String |
getLanguage()
|
int |
getOffset()
Getter for the Offset of this Sentence relative to the whole analysed Text. |
java.lang.String |
getText()
|
java.util.List<TextAnalyzer.AnalysedText.Token> |
getTokens()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String sentence
protected final java.util.List<TextAnalyzer.AnalysedText.Token> tokens
unmodifiable list
with the tokens of the analysed sentence.
protected final java.util.List<TextAnalyzer.AnalysedText.Chunk> chunks
unmodifiable list
with the chunks of the analysed sentence or null
of no chunks are available
protected java.lang.String language
| Method Detail |
|---|
public java.util.List<TextAnalyzer.AnalysedText.Token> getTokens()
public java.util.List<TextAnalyzer.AnalysedText.Chunk> getChunks()
public java.lang.String getText()
public java.lang.String getLanguage()
public int getOffset()
0 if there is no offset this analysed text represents
the whole content
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||