Back to LanguageTool Homepage - Privacy - Imprint

Run ConfusionRuleEvaluator from the command line?


(Son Lee) #1

To add pairs of words to confusion_sets.txt, a factor is necessary. To find that factor, “Open ConfusionRuleEvaluator.java in your IDE and set TOKEN and TOKEN_HOMOPHONE to the two words that can easily be confused. Then run the main method of the class” (http://wiki.languagetool.org/adding-n-gram-data-rules).

Is it possible to find the factor using the command line? If yes, how?
Thank
Cristiano


(Daniel Naber) #2

The documentation is a bit outdated - please try downloading http://languagetool.org/download/test/languagetool-dev-4.3-SNAPSHOT-jar-with-dependencies.jar and then running this command:

java -cp languagetool-dev-4.3-SNAPSHOT-jar-with-dependencies.jar org.languagetool.dev.bigdata.ConfusionRuleEvaluator

It should print the usage which also lets you specify the token pair.