public final class UnknownDictionary extends BinaryDictionary
BinaryDictionary.ResourceSchemeDictionary.MorphemeDICT_FILENAME_SUFFIX, DICT_HEADER, HAS_READING, HAS_SINGLE_POS, POSDICT_FILENAME_SUFFIX, POSDICT_HEADER, TARGETMAP_FILENAME_SUFFIX, TARGETMAP_HEADER, VERSION| Constructor and Description |
|---|
UnknownDictionary(BinaryDictionary.ResourceScheme scheme,
String resourcePath) |
| Modifier and Type | Method and Description |
|---|---|
CharacterDefinition |
getCharacterDefinition() |
static UnknownDictionary |
getInstance() |
Dictionary.Morpheme[] |
getMorphemes(int wordId,
char[] surfaceForm,
int off,
int len)
Get the morphemes of specified word (e.g.
|
String |
getReading(int wordId)
Get the reading of specified word (mainly used for Hanja to Hangul conversion).
|
getClassResource, getLeftId, getLeftPOS, getPOSType, getResource, getResource, getRightId, getRightPOS, getWordCost, lookupWordIdspublic UnknownDictionary(BinaryDictionary.ResourceScheme scheme, String resourcePath) throws IOException
scheme - scheme for loading resources (FILE or CLASSPATH).resourcePath - where to load resources from; a path, including the file base name without
extension; this is used to match multiple files with the same base name.IOExceptionpublic CharacterDefinition getCharacterDefinition()
public static UnknownDictionary getInstance()
public String getReading(int wordId)
DictionarygetReading in interface DictionarygetReading in class BinaryDictionarypublic Dictionary.Morpheme[] getMorphemes(int wordId, char[] surfaceForm, int off, int len)
DictionarygetMorphemes in interface DictionarygetMorphemes in class BinaryDictionaryCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.