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

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

public class TextAnalyzer.AnalysedText.Chunk
extends java.lang.Object


Field Summary
protected  opennlp.tools.util.Span chunkSpan
          Span over the TextAnalyzer.AnalysedText.tokens as used by the getStart() and getEnd() methods
protected  double probability
           
protected  opennlp.tools.util.Span span
          The span over the char offset of this chunk within the TextAnalyzer.AnalysedText.sentence
 
Method Summary
 int getEnd()
           
 double getProbability()
           
 int getSize()
           
 int getStart()
           
 java.lang.String getText()
          The text of this chunk
 java.util.List<TextAnalyzer.AnalysedText.Token> getTokens()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

span

protected final opennlp.tools.util.Span span
The span over the char offset of this chunk within the TextAnalyzer.AnalysedText.sentence


chunkSpan

protected final opennlp.tools.util.Span chunkSpan
Span over the TextAnalyzer.AnalysedText.tokens as used by the getStart() and getEnd() methods


probability

protected final double probability
Method Detail

getTokens

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

getStart

public int getStart()
Returns:
the span

getEnd

public int getEnd()

getSize

public int getSize()

getProbability

public double getProbability()
Returns:
the probability

getText

public java.lang.String getText()
The text of this chunk

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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