Class MultiLanguageTextCheckEval
java.lang.Object
org.languagetool.remote.multiLang.MultiLanguageTextCheckEval
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Stringprivate static intprivate static intprivate static intprivate static Stringprivate static Randomprivate static List<MultiLanguageTextCheckEval.DetectionResults> private static intprivate static booleanprivate static booleanprivate static boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static MultiLangCorporacreateCorporaFromFiles(String mainLanguage, List<String> mainLanguageLines, String otherLanguage, List<String> otherLanguageLines) private static StringgetSupportedLangCode(String shortCode) static voidprivate static voidprintSummary(String mode) private static MultiLanguageTextCheckEval.DetectionResultsrunTest(MultiLangCorpora mlc) private static MultiLanguageTextCheckEval.DetectionResultsrunTest(MultiLangCorpora mlc, String languageToolServer)
-
Field Details
-
randomGen
-
minMainLanguageSentences
private static int minMainLanguageSentences -
maxOtherLanguageSentences
private static int maxOtherLanguageSentences -
maxOtherLanguageSentencesAtOnce
private static int maxOtherLanguageSentencesAtOnce -
mainLanguages
-
otherLanguage
-
useLangDetectionService
private static boolean useLangDetectionService -
rounds
private static int rounds -
roundResults
-
spamToMe
private static boolean spamToMe -
allWrongRanges
-
allNotDetected
-
vsMode
private static boolean vsMode
-
-
Constructor Details
-
MultiLanguageTextCheckEval
public MultiLanguageTextCheckEval()
-
-
Method Details
-
main
-
printSummary
-
createCorporaFromFiles
-
runTest
-
runTest
private static MultiLanguageTextCheckEval.DetectionResults runTest(MultiLangCorpora mlc, String languageToolServer) -
getSupportedLangCode
-