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(String key)
return data structure containing a list of dictionary entries, sorted by number of tokens
|
EntryPropertiesRoot |
getEntryPropertiesRoot() |
boolean |
isLoaded() |
Enumeration<String> |
keys() |
void |
load(org.apache.uima.resource.DataResource data) |
void |
loadDictionaryContents(org.apache.uima.UimaContext context,
Logger logger,
String tokenAnnotationName,
String tokenTypeFeatureName,
String tokenClassFeatureName,
String tokenizerDescriptor) |
DictionaryResource |
newDictionaryResource(int initialSize) |
void |
putEntry(String key,
String[] tokens,
String unsortedEntry,
int length,
EntryProperties props) |
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(String key)
key - -void putEntry(String key, String[] tokens, 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 entryEnumeration<String> keys()
void loadDictionaryContents(org.apache.uima.UimaContext context,
Logger logger,
String tokenAnnotationName,
String tokenTypeFeatureName,
String tokenClassFeatureName,
String tokenizerDescriptor)
throws org.apache.uima.resource.ResourceInitializationException
context - -logger - -tokenAnnotationName - -tokenTypeFeatureName - -tokenClassFeatureName - -tokenizerDescriptor - -org.apache.uima.resource.ResourceInitializationException - -boolean isLoaded()
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.