| Constructor and Description |
|---|
PosUimaTokenizer(String tokens,
org.apache.uima.analysis_engine.AnalysisEngine engine,
Collection<String> allowedPosTags) |
| Modifier and Type | Method and Description |
|---|---|
int |
countTokens()
The number of tokens in the tokenizer
|
static org.apache.uima.analysis_engine.AnalysisEngine |
defaultAnalysisEngine() |
List<String> |
getTokens()
Returns a list of all the tokens
|
boolean |
hasMoreTokens()
An iterator for tracking whether
more tokens are left in the iterator not
|
String |
nextToken()
The next token (word usually) in the string
|
void |
setTokenPreProcessor(TokenPreProcess tokenPreProcessor)
Set the token pre process
|
public PosUimaTokenizer(String tokens, org.apache.uima.analysis_engine.AnalysisEngine engine, Collection<String> allowedPosTags)
public boolean hasMoreTokens()
TokenizerhasMoreTokens in interface Tokenizerpublic int countTokens()
TokenizercountTokens in interface Tokenizerpublic String nextToken()
Tokenizerpublic List<String> getTokens()
Tokenizerpublic static org.apache.uima.analysis_engine.AnalysisEngine defaultAnalysisEngine()
public void setTokenPreProcessor(TokenPreProcess tokenPreProcessor)
TokenizersetTokenPreProcessor in interface TokenizertokenPreProcessor - the token pre processor to setCopyright © 2014. All rights reserved.