Class ConnectionCosts
- java.lang.Object
-
- org.apache.lucene.analysis.ko.dict.ConnectionCosts
-
public final class ConnectionCosts extends Object
n-gram connection cost data
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILENAME_SUFFIX
static String
HEADER
static int
VERSION
-
Constructor Summary
Constructors Constructor Description ConnectionCosts(BinaryDictionary.ResourceScheme scheme, String resourcePath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
get(int forwardId, int backwardId)
static ConnectionCosts
getInstance()
-
-
-
Field Detail
-
FILENAME_SUFFIX
public static final String FILENAME_SUFFIX
- See Also:
- Constant Field Values
-
HEADER
public static final String HEADER
- See Also:
- Constant Field Values
-
VERSION
public static final int VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConnectionCosts
public ConnectionCosts(BinaryDictionary.ResourceScheme scheme, String resourcePath) throws IOException
- Parameters:
scheme
- - scheme for loading resources (FILE or CLASSPATH).resourcePath
- - where to load resources from, without the ".dat" suffix- Throws:
IOException
-
-
Method Detail
-
get
public int get(int forwardId, int backwardId)
-
getInstance
public static ConnectionCosts getInstance()
-
-