public interface JCasTermAnnotator
RareWordDictionary
s
and adds them as entities to the Cas using a TermConsumer
Author: SPF
Affiliation: CHIP-NLP
Date: 2/24/14Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DICTIONARY_DESCRIPTOR_KEY |
Modifier and Type | Method and Description |
---|---|
void |
findTerms(RareWordDictionary dictionary,
java.util.List<FastLookupToken> allTokens,
java.util.List<java.lang.Integer> lookupTokenIndices,
CollectionMap<TextSpan,java.lang.Long,? extends java.util.Collection<java.lang.Long>> termsFromDictionary)
Given a dictionary, tokens, and lookup token indices, populate a terms collection with discovered terms
|
java.util.Collection<RareWordDictionary> |
getDictionaries() |
static final java.lang.String DICTIONARY_DESCRIPTOR_KEY
java.util.Collection<RareWordDictionary> getDictionaries()
void findTerms(RareWordDictionary dictionary, java.util.List<FastLookupToken> allTokens, java.util.List<java.lang.Integer> lookupTokenIndices, CollectionMap<TextSpan,java.lang.Long,? extends java.util.Collection<java.lang.Long>> termsFromDictionary)
dictionary
- -allTokens
- -lookupTokenIndices
- -termsFromDictionary
- -