public interface LookupInitializer
Modifier and Type | Method and Description |
---|---|
Map<String,List<LookupAnnotation>> |
getContextMap(org.apache.uima.jcas.JCas jcas,
int windowBegin,
int windowEnd)
Gets context for the specified window.
|
LookupAlgorithm |
getLookupAlgorithm(DictionaryEngine dictEngine)
Gets the LookupAlgorithm to be used to perform the lookup operations.
|
Iterator<LookupToken> |
getLookupTokenIterator(org.apache.uima.jcas.JCas jcas)
Gets an iteration of tokens that represent the finest grain used for a
lookup operation.
|
Iterator<org.apache.uima.jcas.tcas.Annotation> |
getLookupWindowIterator(org.apache.uima.jcas.JCas jcas)
Gets an iteration of windows.
|
List<LookupToken> |
getSortedLookupTokens(org.apache.uima.jcas.JCas jcas,
org.apache.uima.jcas.tcas.Annotation annotation)
Gets a list of tokens that we promise to return in sorted order that are constrained by the
input annotation.
|
Iterator<LookupToken> getLookupTokenIterator(org.apache.uima.jcas.JCas jcas) throws org.apache.uima.analysis_engine.annotator.AnnotatorInitializationException
jcas
- Use the JCas to pull out pre-existing feature structures to
build the LookupToken objects. Add attributes to the
LookupToken objects as you see fit.org.apache.uima.analysis_engine.annotator.AnnotatorInitializationException
Iterator<org.apache.uima.jcas.tcas.Annotation> getLookupWindowIterator(org.apache.uima.jcas.JCas jcas) throws org.apache.uima.analysis_engine.annotator.AnnotatorInitializationException
jcas
- Use the JCas to pull out pre-existing feature structures to
build LookupAnnotation objects.org.apache.uima.analysis_engine.annotator.AnnotatorInitializationException
List<LookupToken> getSortedLookupTokens(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation annotation) throws org.apache.uima.analysis_engine.annotator.AnnotatorInitializationException
jcas
- annotation
- org.apache.uima.analysis_engine.annotator.AnnotatorInitializationException
LookupAlgorithm getLookupAlgorithm(DictionaryEngine dictEngine) throws org.apache.uima.analysis_engine.annotator.AnnotatorInitializationException
dictEngine
- DictionaryEngine that will execute lookup operations.org.apache.uima.analysis_engine.annotator.AnnotatorInitializationException
Map<String,List<LookupAnnotation>> getContextMap(org.apache.uima.jcas.JCas jcas, int windowBegin, int windowEnd) throws org.apache.uima.analysis_engine.annotator.AnnotatorInitializationException
jcas
- windowBegin
- windowEnd
- org.apache.uima.analysis_engine.annotator.AnnotatorInitializationException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.