Class ConnectionCosts

java.lang.Object
org.apache.lucene.analysis.ko.dict.ConnectionCosts

public final class ConnectionCosts extends Object
n-gram connection cost data
  • Field Details

  • Constructor Details

    • ConnectionCosts

      @Deprecated(forRemoval=true, since="9.1") public ConnectionCosts(BinaryDictionary.ResourceScheme scheme, String resourcePath) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      scheme - - scheme for loading resources (FILE or CLASSPATH).
      resourcePath - - where to load resources from, without the ".dat" suffix
      Throws:
      IOException
    • ConnectionCosts

      public ConnectionCosts(Path connectionCostsFile) throws IOException
      Create a ConnectionCosts 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

      public static ConnectionCosts getInstance()