public final class UnknownDictionary extends BinaryDictionary
BinaryDictionary.ResourceScheme
Dictionary.Morpheme
DICT_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, lookupWordIds
public 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.IOException
public CharacterDefinition getCharacterDefinition()
public static UnknownDictionary getInstance()
public String getReading(int wordId)
Dictionary
getReading
in interface Dictionary
getReading
in class BinaryDictionary
public Dictionary.Morpheme[] getMorphemes(int wordId, char[] surfaceForm, int off, int len)
Dictionary
getMorphemes
in interface Dictionary
getMorphemes
in class BinaryDictionary
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.