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

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

Deprecated. replaced by STANBOL-733 (stanbol nlp processing module

public class TextAnalyzer.AnalysedText.Token
extends Object


Field Summary
protected  boolean hasAlphaNumeric
          Deprecated.  
protected  double[] posProbabilities
          Deprecated.  
protected  String[] posTags
          Deprecated.  
protected  opennlp.tools.util.Span span
          Deprecated.  
protected  String token
          Deprecated.  
 
Method Summary
 int getEnd()
          Deprecated.  
 double[] getPosProbabilities()
          Deprecated. Getter for the probabilities of all POS tags
 double getPosProbability()
          Deprecated. Getter for the probability of the top ranked POS tag
 String getPosTag()
          Deprecated. Getter for the best ranked POS tag for this token
 String[] getPosTags()
          Deprecated. Getter for all the POS tags of this Token.
 int getStart()
          Deprecated.  
 String getText()
          Deprecated. Getter for the value of this token
 boolean hasAplhaNumericChar()
          Deprecated.  
 String toString()
          Deprecated.  
 
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
Deprecated. 

token

protected String token
Deprecated. 

posTags

protected final String[] posTags
Deprecated. 

posProbabilities

protected final double[] posProbabilities
Deprecated. 

hasAlphaNumeric

protected final boolean hasAlphaNumeric
Deprecated. 
Method Detail

getStart

public int getStart()
Deprecated. 

getEnd

public int getEnd()
Deprecated. 

getPosTag

public String getPosTag()
Deprecated. 
Getter for the best ranked POS tag for this token

Returns:

getPosTags

public String[] getPosTags()
Deprecated. 
Getter for all the POS tags of this Token. The one with the highest probability is at index 0.

Returns:
All POS tags assigned to this Token

getPosProbability

public double getPosProbability()
Deprecated. 
Getter for the probability of the top ranked POS tag

Returns:
the POS probability

getPosProbabilities

public double[] getPosProbabilities()
Deprecated. 
Getter for the probabilities of all POS tags

Returns:
the probabilities of the POS tags returned by getPosTags()

getText

public String getText()
Deprecated. 
Getter for the value of this token

Returns:

hasAplhaNumericChar

public boolean hasAplhaNumericChar()
Deprecated. 

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object


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