public interface LookupInitializer
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.List<LookupAnnotation>> |
getContextMap(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.
|
java.util.Iterator<LookupToken> |
getLookupTokenIterator(JCas jcas)
Gets an iteration of tokens that represent the finest grain used for a
lookup operation.
|
java.util.Iterator<Annotation> |
getLookupWindowIterator(JCas jcas)
Gets an iteration of windows.
|
java.util.List<LookupToken> |
getSortedLookupTokens(JCas jcas,
Annotation annotation)
Gets a list of tokens that we promise to return in sorted order that are constrained by the
input annotation.
|
java.util.Iterator<LookupToken> getLookupTokenIterator(JCas jcas) throws 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.AnnotatorInitializationException
java.util.Iterator<Annotation> getLookupWindowIterator(JCas jcas) throws AnnotatorInitializationException
jcas
- Use the JCas to pull out pre-existing feature structures to
build LookupAnnotation objects.AnnotatorInitializationException
java.util.List<LookupToken> getSortedLookupTokens(JCas jcas, Annotation annotation) throws AnnotatorInitializationException
jcas
- annotation
- AnnotatorInitializationException
LookupAlgorithm getLookupAlgorithm(DictionaryEngine dictEngine) throws AnnotatorInitializationException
dictEngine
- DictionaryEngine that will execute lookup operations.AnnotatorInitializationException
java.util.Map<java.lang.String,java.util.List<LookupAnnotation>> getContextMap(JCas jcas, int windowBegin, int windowEnd) throws AnnotatorInitializationException
jcas
- windowBegin
- windowEnd
- AnnotatorInitializationException