public final class UnknownDictionary extends BinaryDictionary
DICT_FILENAME_SUFFIX, DICT_HEADER, HAS_BASEFORM, HAS_PRONUNCIATION, HAS_READING, POSDICT_FILENAME_SUFFIX, POSDICT_HEADER, TARGETMAP_FILENAME_SUFFIX, TARGETMAP_HEADER, VERSION
INTERNAL_SEPARATOR
Modifier and Type | Method and Description |
---|---|
CharacterDefinition |
getCharacterDefinition() |
String |
getInflectionForm(int wordId)
Get inflection form of tokens
|
String |
getInflectionType(int wordId)
Get inflection type of tokens
|
static UnknownDictionary |
getInstance() |
String |
getReading(int wordId,
char[] surface,
int off,
int len)
Get reading of tokens
|
int |
lookup(char[] text,
int offset,
int len) |
getBaseForm, getClassResource, getLeftId, getPartOfSpeech, getPronunciation, getResource, getRightId, getWordCost, lookupWordIds
public int lookup(char[] text, int offset, int len)
public CharacterDefinition getCharacterDefinition()
public String getReading(int wordId, char[] surface, int off, int len)
Dictionary
getReading
in interface Dictionary
getReading
in class BinaryDictionary
wordId
- word ID of tokenpublic String getInflectionType(int wordId)
Dictionary
getInflectionType
in interface Dictionary
getInflectionType
in class BinaryDictionary
wordId
- word ID of tokenpublic String getInflectionForm(int wordId)
Dictionary
getInflectionForm
in interface Dictionary
getInflectionForm
in class BinaryDictionary
wordId
- word ID of tokenpublic static UnknownDictionary getInstance()