languagetool-neural-network icon indicating copy to clipboard operation
languagetool-neural-network copied to clipboard

How to working with languagetool.cfg

Open Mannshoch opened this issue 4 years ago • 3 comments

I installed the Languagetool server which runs without problems. I do not have a languagetool.cfg anywhere. How do I setup this languagetool.cfg? I do not find anything about the languagetool.cfg and it's content in the languagetool wiki.

Mannshoch avatar Apr 27 '20 12:04 Mannshoch

I think it is created when you change something in the configuration dialog of the GUI. The file looks like this:

#LanguageTool configuration (4.4/2018-12-27 10:19)
#Thu Mar 14 19:51:53 CET 2019
disabledRules.de-DE=
taggerShowsDisambigLog=false
autoDetect=false
disabledCategories.de-DE=
serverPort=8081
useGUIConfig=false
enabledRules.de-DE=
enabledCategories.de-DE=
numberParagraphs=5
configurableRuleValues=
language=de-DE
serverMode=false
doResetCheck=false
underlineColors=
errorColors=

You can use this as a template – I’m not sure whether the format has changed during the last years, though.

mabre avatar Apr 28 '20 13:04 mabre

I do not use the GUI so may in CLI there is no configfile.

Mannshoch avatar Apr 28 '20 14:04 Mannshoch

According to java -jar languagetool-server.jar --help, there is a --config parameter where you can specify a path to a configuration file.

mabre avatar Apr 28 '20 15:04 mabre