org.apache.lucene.analysis.uima
Class UIMAAnnotationsTokenizer
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.Tokenizer
org.apache.lucene.analysis.uima.BaseUIMATokenizer
org.apache.lucene.analysis.uima.UIMAAnnotationsTokenizer
- All Implemented Interfaces:
- Closeable
public final class UIMAAnnotationsTokenizer
- extends BaseUIMATokenizer
a Tokenizer
which creates tokens from UIMA Annotations
Fields inherited from class org.apache.lucene.analysis.Tokenizer |
input |
Method Summary |
void |
end()
|
boolean |
incrementToken()
|
protected void |
initializeIterator()
initialize the FSIterator which is used to build tokens at each incrementToken() method call |
Methods inherited from class org.apache.lucene.util.AttributeSource |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString |
UIMAAnnotationsTokenizer
public UIMAAnnotationsTokenizer(String descriptorPath,
String tokenType,
Map<String,Object> configurationParameters,
Reader input)
UIMAAnnotationsTokenizer
public UIMAAnnotationsTokenizer(String descriptorPath,
String tokenType,
Map<String,Object> configurationParameters,
AttributeSource.AttributeFactory factory,
Reader input)
initializeIterator
protected void initializeIterator()
throws IOException
- Description copied from class:
BaseUIMATokenizer
- initialize the FSIterator which is used to build tokens at each incrementToken() method call
- Specified by:
initializeIterator
in class BaseUIMATokenizer
- Throws:
IOException
- If there is a low-level I/O error.
incrementToken
public boolean incrementToken()
throws IOException
- Specified by:
incrementToken
in class TokenStream
- Throws:
IOException
end
public void end()
throws IOException
- Overrides:
end
in class TokenStream
- Throws:
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.