public interface LanguageModel extends AutoCloseable
Modifier and Type | Field and Description |
---|---|
static String |
GOOGLE_SENTENCE_END
ngram sentence end marker - note: this is not in the v1 data from Google
|
static String |
GOOGLE_SENTENCE_START
ngram sentence start marker - note: this is not in the v1 data from Google
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Probability |
getPseudoProbability(List<String> context)
This is not always guaranteed to be a real probability (0.0 to 1.0).
|
static final String GOOGLE_SENTENCE_START
static final String GOOGLE_SENTENCE_END
Probability getPseudoProbability(List<String> context)
void close()
close
in interface AutoCloseable