org.apache.stanbol.commons.opennlp
Class TextAnalyzer.AnalysedText.Chunk
java.lang.Object
org.apache.stanbol.commons.opennlp.TextAnalyzer.AnalysedText.Chunk
- Enclosing class:
- TextAnalyzer.AnalysedText
public class TextAnalyzer.AnalysedText.Chunk
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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.