Class StupidBackoff

    • Constructor Detail

      • StupidBackoff

        public StupidBackoff​(double discount)
        Creates a Stupid-Backoff smoothing model.
        Parameters:
        discount - the discount given to lower order ngrams if the higher order ngram doesn't exits
      • StupidBackoff

        public StupidBackoff​(StreamInput in)
                      throws java.io.IOException
        Read from a stream.
        Throws:
        java.io.IOException