Package org.languagetool.languagemodel
Class MultiLanguageModel
java.lang.Object
org.languagetool.languagemodel.MultiLanguageModel
- All Implemented Interfaces:
AutoCloseable,LanguageModel
Combines the results of several
LanguageModels.- Since:
- 3.2
-
Field Summary
FieldsFields inherited from interface org.languagetool.languagemodel.LanguageModel
GOOGLE_SENTENCE_END, GOOGLE_SENTENCE_START -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getPseudoProbability(List<String> context) This is not always guaranteed to be a real probability (0.0 to 1.0).toString()
-
Field Details
-
lms
-
-
Constructor Details
-
MultiLanguageModel
-
-
Method Details
-
getPseudoProbability
Description copied from interface:LanguageModelThis 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.- Specified by:
getPseudoProbabilityin interfaceLanguageModel
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceLanguageModel
-
toString
-