org.apache.stanbol.commons.opennlp
Class TextAnalyzer.AnalysedText

java.lang.Object
  extended by org.apache.stanbol.commons.opennlp.TextAnalyzer.AnalysedText
Enclosing class:
TextAnalyzer

public class TextAnalyzer.AnalysedText
extends java.lang.Object


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

sentence

protected final java.lang.String sentence
The analysed sentence


tokens

protected final java.util.List<TextAnalyzer.AnalysedText.Token> tokens
Final and unmodifiable list with the tokens of the analysed sentence.


chunks

protected final 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


language

protected java.lang.String language
The language of the analyzed text

Method Detail

getTokens

public java.util.List<TextAnalyzer.AnalysedText.Token> getTokens()

getChunks

public java.util.List<TextAnalyzer.AnalysedText.Chunk> getChunks()

getText

public java.lang.String getText()

getLanguage

public java.lang.String getLanguage()

getOffset

public int getOffset()
Getter for the Offset of this Sentence relative to the whole analysed Text. 0 if there is no offset this analysed text represents the whole content

Returns:
the offset


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.