Hi,
i use LanguageToolChecker with french language, i use the class test, for english it works fine but for french he don't show seggestions
String testDocument = "comment modifer un compte";
AnalysisEngine engine = AnalysisEngineFactory.createEngine(LanguageToolChecker.class,
LanguageToolChecker.PARAM_LANGUAGE, "fr");
JCas aJCas = engine.newJCas();
TokenBuilder<Token, Sentence> tb = new TokenBuilder<>(Token.class, Sentence.class);
tb.buildTokens(aJCas, testDocument);
engine.process(aJCas);
// copy input match type annotations to an array
int count = 0;
for (GrammarAnomaly ga : JCasUtil.select(aJCas, GrammarAnomaly.class)) {
System.out.println(
"Error " + (count + 1) + " (" + ga.getBegin() + ", " + ga.getEnd() + "):" + ga.getDescription());
count++;
}
output test :
Error 1 (0, 7):Cette phrase ne commence pas par une majuscule
Error 2 (8, 15):Faute de frappe possible trouvée
How to explain this problem?
Best regards
Yassin