Package org.languagetool.languagemodel
Class MultiLanguageModel
java.lang.Object
org.languagetool.languagemodel.MultiLanguageModel
- All Implemented Interfaces:
AutoCloseable
,LanguageModel
Combines the results of several
LanguageModel
s.- 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 TypeMethodDescriptionvoid
close()
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:LanguageModel
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.- Specified by:
getPseudoProbability
in interfaceLanguageModel
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceLanguageModel
-
toString
-