Class ConnectionCosts


  • public final class ConnectionCosts
    extends java.lang.Object
    n-gram connection cost data
    • Constructor Detail

      • ConnectionCosts

        public ConnectionCosts​(BinaryDictionary.ResourceScheme scheme,
                               java.lang.String path)
                        throws java.io.IOException
        Parameters:
        scheme - - scheme for loading resources (FILE or CLASSPATH).
        path - - where to load resources from, without the ".dat" suffix
        Throws:
        java.io.IOException
      • ConnectionCosts

        private ConnectionCosts()
                         throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • get

        public int get​(int forwardId,
                       int backwardId)