Class ConnectionCosts
java.lang.Object
org.apache.lucene.analysis.ja.dict.ConnectionCosts
n-gram connection cost data
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConnectionCosts(BinaryDictionary.ResourceScheme scheme, String path) -
Method Summary
-
Field Details
-
FILENAME_SUFFIX
- See Also:
-
HEADER
- See Also:
-
VERSION
public static final int VERSION- See Also:
-
costs
private final short[][] costs
-
-
Constructor Details
-
ConnectionCosts
- Parameters:
scheme- - scheme for loading resources (FILE or CLASSPATH).path- - where to load resources from, without the ".dat" suffix- Throws:
IOException
-
ConnectionCosts
- Throws:
IOException
-
-
Method Details
-
get
public int get(int forwardId, int backwardId) -
getInstance
-