Class ConnectionCosts
java.lang.Object
org.apache.lucene.analysis.ja.dict.ConnectionCosts
n-gram connection cost data
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConnectionCosts
(Path connectionCostsFile) Create aConnectionCosts
from an external resource path.ConnectionCosts
(BinaryDictionary.ResourceScheme scheme, String path) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
-
Field Details
-
FILENAME_SUFFIX
- See Also:
-
HEADER
- See Also:
-
VERSION
public static final int VERSION- See Also:
-
-
Constructor Details
-
ConnectionCosts
@Deprecated(forRemoval=true, since="9.1") public ConnectionCosts(BinaryDictionary.ResourceScheme scheme, String path) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.replaced byConnectionCosts(Path)
- Parameters:
scheme
- - scheme for loading resources (FILE or CLASSPATH).path
- - where to load resources from, without the ".dat" suffix- Throws:
IOException
-
ConnectionCosts
Create aConnectionCosts
from an external resource path.- Parameters:
connectionCostsFile
- where to load connection costs resource- Throws:
IOException
- if resource was not found or broken
-
-
Method Details
-
get
public int get(int forwardId, int backwardId) -
getInstance
-
ConnectionCosts(Path)