Interface ContextEncodedLmCache

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    ContextEncodedDirectMappedLmCache

    public interface ContextEncodedLmCache
    extends java.io.Serializable
    • Method Detail

      • getCached

        float getCached​(long contextOffset,
                        int contextOrder,
                        int word,
                        int hash,
                        ContextEncodedNgramLanguageModel.LmContextInfo outputPrefix)
        Should return Float.NaN if requested n-gram is not in the cache.
        Parameters:
        contextOffset -
        contextOrder -
        word -
        hash -
        outputPrefix -
        Returns:
      • capacity

        int capacity()