public class CompiledDictionaryResource_impl extends java.lang.Object implements DictionaryResource, org.apache.uima.resource.SharedResourceObject
DictionaryResource.DictEntries, DictionaryResource.DictEntriesByLength, DictionaryResource.DictEntry| Modifier and Type | Field and Description |
|---|---|
protected java.util.Hashtable<java.lang.String,DictionaryResource.DictEntriesByLength> |
dictImpl
Hashtable of first words.
|
protected EntryPropertiesRoot |
entryPropertiesRoot |
| Constructor and Description |
|---|
CompiledDictionaryResource_impl() |
| 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringprotected java.util.Hashtable<java.lang.String,DictionaryResource.DictEntriesByLength> dictImpl
protected EntryPropertiesRoot entryPropertiesRoot
public DictionaryResource newDictionaryResource(int initialSize)
newDictionaryResource in interface DictionaryResourcepublic DictionaryResource.DictEntriesByLength getEntries(java.lang.String key)
DictionaryResourcegetEntries in interface DictionaryResourcepublic boolean isLoaded()
isLoaded in interface DictionaryResourcepublic java.util.Enumeration<java.lang.String> keys()
keys in interface DictionaryResourcepublic void load(org.apache.uima.resource.DataResource data)
throws org.apache.uima.resource.ResourceInitializationException
load in interface DictionaryResourceload in interface org.apache.uima.resource.SharedResourceObjectorg.apache.uima.resource.ResourceInitializationExceptionpublic 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)
throws org.apache.uima.resource.ResourceInitializationException
loadDictionaryContents in interface DictionaryResourceorg.apache.uima.resource.ResourceInitializationExceptionpublic void putEntry(java.lang.String key,
java.lang.String[] tokens,
java.lang.String unsortedEntry,
int length,
EntryProperties props)
putEntry in interface DictionaryResourcekey - 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 entrypublic EntryPropertiesRoot getEntryPropertiesRoot()
getEntryPropertiesRoot in interface DictionaryResourceCopyright © 2013. All Rights Reserved.