public class DictionaryDictCC extends Object implements Dictionary, org.dice_research.topicmodeling.io.CorpusBasedFileProcessor
| Modifier and Type | Class and Description |
|---|---|
private static class |
DictionaryDictCC.DictCcTranslater |
| Modifier and Type | Field and Description |
|---|---|
protected com.carrotsearch.hppc.ObjectObjectOpenHashMap<String,String> |
dictionary |
protected static String |
DICTIONARY_FILE_NAME |
protected boolean |
localDictionaryChanged |
private static org.slf4j.Logger |
LOGGER |
private static boolean |
REQUEST_UNKNOWN_WORDS |
protected static DictionaryDictCC |
singletonDict |
protected DictionaryDictCC.DictCcTranslater |
translater |
| Modifier | Constructor and Description |
|---|---|
protected |
DictionaryDictCC() |
| Modifier and Type | Method and Description |
|---|---|
org.dice_research.topicmodeling.lang.Language |
getDestinationLanguage() |
static DictionaryDictCC |
getInstance() |
org.dice_research.topicmodeling.lang.Language |
getSourceLanguage() |
protected static DictionaryDictCC |
readFromObjectFile() |
void |
saveAsObjectFile() |
String |
translate(String word) |
private static final org.slf4j.Logger LOGGER
private static final boolean REQUEST_UNKNOWN_WORDS
protected static final String DICTIONARY_FILE_NAME
protected static DictionaryDictCC singletonDict
protected DictionaryDictCC.DictCcTranslater translater
protected boolean localDictionaryChanged
public static DictionaryDictCC getInstance()
public void saveAsObjectFile()
saveAsObjectFile in interface Dictionaryprotected static DictionaryDictCC readFromObjectFile()
public String translate(String word)
translate in interface Dictionarypublic org.dice_research.topicmodeling.lang.Language getSourceLanguage()
getSourceLanguage in interface Dictionarypublic org.dice_research.topicmodeling.lang.Language getDestinationLanguage()
getDestinationLanguage in interface DictionaryCopyright © 2015–2020. All rights reserved.