public final class TokenInfoDictionary extends BinaryDictionary
BinaryDictionary.ResourceScheme
Modifier and Type | Field and Description |
---|---|
static String |
FST_FILENAME_SUFFIX |
DICT_FILENAME_SUFFIX, DICT_HEADER, HAS_BASEFORM, HAS_PRONUNCIATION, HAS_READING, POSDICT_FILENAME_SUFFIX, POSDICT_HEADER, TARGETMAP_FILENAME_SUFFIX, TARGETMAP_HEADER, VERSION
INTERNAL_SEPARATOR
Constructor and Description |
---|
TokenInfoDictionary(BinaryDictionary.ResourceScheme resourceScheme,
String resourcePath) |
Modifier and Type | Method and Description |
---|---|
TokenInfoFST |
getFST() |
static TokenInfoDictionary |
getInstance() |
getBaseForm, getClassResource, getInflectionForm, getInflectionType, getLeftId, getPartOfSpeech, getPronunciation, getReading, getResource, getResource, getRightId, getWordCost, lookupWordIds
public static final String FST_FILENAME_SUFFIX
public TokenInfoDictionary(BinaryDictionary.ResourceScheme resourceScheme, String resourcePath) throws IOException
resourceScheme
- - scheme for loading resources (FILE or CLASSPATH).resourcePath
- - where to load resources (dictionaries) from. If null, with CLASSPATH scheme only, use
this class's name as the path.IOException
public TokenInfoFST getFST()
public static TokenInfoDictionary getInstance()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.