Interface LanguageModel

    • Field Detail

      • GOOGLE_SENTENCE_START

        static final String GOOGLE_SENTENCE_START
        ngram sentence start marker - note: this is not in the v1 data from Google
        See Also:
        Constant Field Values
      • GOOGLE_SENTENCE_END

        static final String GOOGLE_SENTENCE_END
        ngram sentence end marker - note: this is not in the v1 data from Google
        See Also:
        Constant Field Values
    • Method Detail

      • getPseudoProbability

        Probability getPseudoProbability​(List<String> context)
        This is not always guaranteed to be a real probability (0.0 to 1.0). Throws exception if context is longer than the ngram index supports.
        Since:
        3.2