public final class UIMATypeAwareAnnotationsTokenizer extends BaseUIMATokenizer
Tokenizer
which creates token from UIMA Annotations filling also their TypeAttribute
according to
FeaturePath
s specifiedAttributeSource.State
ae, cas, iterator
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
Constructor and Description |
---|
UIMATypeAwareAnnotationsTokenizer(String descriptorPath,
String tokenType,
String typeAttributeFeaturePath,
Map<String,Object> configurationParameters) |
UIMATypeAwareAnnotationsTokenizer(String descriptorPath,
String tokenType,
String typeAttributeFeaturePath,
Map<String,Object> configurationParameters,
AttributeFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
end() |
boolean |
incrementToken() |
protected void |
initializeIterator()
initialize the FSIterator which is used to build tokens at each incrementToken() method call
|
analyzeInput, reset
close, correctOffset, setReader
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
public UIMATypeAwareAnnotationsTokenizer(String descriptorPath, String tokenType, String typeAttributeFeaturePath, Map<String,Object> configurationParameters)
protected void initializeIterator() throws IOException
BaseUIMATokenizer
initializeIterator
in class BaseUIMATokenizer
IOException
- If there is a low-level I/O error.public boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException
public void end() throws IOException
end
in class TokenStream
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.