So this en folder is there under the path
/home/ec2-user/LanguageTool-4.7/org/languagetool/rules/
But the Ngrams is under another /en folder which I created manually.
I tested with below command:
java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8081 --allow-origin ‘*’ --public --languagemodel ‘home/ec2-user/LanguageTool-4.7/org/languagetool/rules/en/’
Still getting error on the client:
Cannot connect to http://172.31.13.63/check (#1, code=undefined)
If I do a curl on the LT server itself
curl --data “language=en-US&text=a simple test” http://localhost:8081/v2/check
{“software”:{“name”:“LanguageTool”,“version”:“4.7”,“buildDate”:“2019-09-28 10:09”,“apiVersion”:1,“premium”:false,“premiumHint”:“You might be missing errors only the Premium version can find. Contact us at supportlanguagetoolplus.com.”,“status”:“”},“warnings”:{“incompleteResults”:false},“language”:{“name”:“English (US)”,“code”:“en-US”,“detectedLanguage”:{“name”:“French”,“code”:“fr”,“confidence”:0.815771}},“matches”:[{“message”:“This sentence does not start with an uppercase letter”,“shortMessage”:“”,“replacements”:[{“value”:“A”}],“offset”:0,“length”:1,“context”:{“text”:“a simple test”,“offset”:0,“length”:1},“sentence”:“a simple test”,“type”:{“typeName”:“Other”},“rule”:{“id”:“UPPERCASE_SENTENCE_START”,“description”:“Checks that a sentence starts with an uppercase letter”,“issueType”:“typographical”,“category”:{“id”:“CASING”,“name”:“Capitalization”}},“ignoreForIncompleteSentence”:true,“contextForSureMatch”:-1}]}