public final class TokenInfoDictionary extends BinaryDictionary
BinaryDictionary.ResourceScheme
Dictionary.Morpheme
Modifier and Type | Field and Description |
---|---|
static String |
FST_FILENAME_SUFFIX |
DICT_FILENAME_SUFFIX, DICT_HEADER, HAS_READING, HAS_SINGLE_POS, POSDICT_FILENAME_SUFFIX, POSDICT_HEADER, TARGETMAP_FILENAME_SUFFIX, TARGETMAP_HEADER, VERSION
Constructor and Description |
---|
TokenInfoDictionary(BinaryDictionary.ResourceScheme resourceScheme,
String resourcePath) |
Modifier and Type | Method and Description |
---|---|
TokenInfoFST |
getFST() |
static TokenInfoDictionary |
getInstance() |
getClassResource, getLeftId, getLeftPOS, getMorphemes, getPOSType, getReading, getResource, getResource, getRightId, getRightPOS, 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.