public interface DictionaryResource
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DictionaryResource.DictEntries |
static interface |
DictionaryResource.DictEntriesByLength |
static interface |
DictionaryResource.DictEntry |
| Modifier and Type | Method and Description |
|---|---|
DictionaryResource.DictEntriesByLength |
getEntries(java.lang.String key)
return data structure containing a list of dictionary entries, sorted by number of tokens
|
EntryPropertiesRoot |
getEntryPropertiesRoot() |
boolean |
isLoaded() |
java.util.Enumeration<java.lang.String> |
keys() |
void |
load(org.apache.uima.resource.DataResource data) |
void |
loadDictionaryContents(org.apache.uima.analysis_engine.annotator.AnnotatorContext context,
Logger logger,
java.lang.String tokenAnnotationName,
java.lang.String tokenTypeFeatureName,
java.lang.String tokenClassFeatureName,
java.lang.String tokenizerDescriptor) |
DictionaryResource |
newDictionaryResource(int initialSize) |
void |
putEntry(java.lang.String key,
java.lang.String[] tokens,
java.lang.String unsortedEntry,
int length,
EntryProperties props) |
java.lang.String |
toString() |
void load(org.apache.uima.resource.DataResource data)
throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationExceptionDictionaryResource newDictionaryResource(int initialSize)
EntryPropertiesRoot getEntryPropertiesRoot()
DictionaryResource.DictEntriesByLength getEntries(java.lang.String key)
key - void putEntry(java.lang.String key,
java.lang.String[] tokens,
java.lang.String unsortedEntry,
int length,
EntryProperties props)
key - the key to index ontokens - array of tokens to be entered in the dictionaryunsortedEntry - String representation of tokens to be entered in the dictionary in sorted order, if
"entry" is sorted, otherwise nulllength - Number of tokens in entryprops - the properties object for the dictionary entryjava.util.Enumeration<java.lang.String> keys()
java.lang.String toString()
toString in class java.lang.Objectvoid loadDictionaryContents(org.apache.uima.analysis_engine.annotator.AnnotatorContext context,
Logger logger,
java.lang.String tokenAnnotationName,
java.lang.String tokenTypeFeatureName,
java.lang.String tokenClassFeatureName,
java.lang.String tokenizerDescriptor)
throws org.apache.uima.resource.ResourceInitializationException
context - logger - tokenAnnotationName - tokenTypeFeatureName - tokenClassFeatureName - tokenizerDescriptor - org.apache.uima.resource.ResourceInitializationExceptionboolean isLoaded()
Copyright © 2013. All Rights Reserved.