myint / language-check

Python wrapper for LanguageTool grammar checker
https://pypi.python.org/pypi/language-check
GNU Lesser General Public License v3.0
327 stars 101 forks source link

Finding errors using n-gram data #58

Open warmlogic opened 6 years ago

warmlogic commented 6 years ago

The LanguageTool wiki describes how to use n-gram data to detect additional error types, and provides n-gram data for this purpose. Is it possible to support this in language-check?

I don't see anything in language-check about --languagemodel or --config file options (I've mostly been looking in __init__.py). I don't know enough about how language-check wraps the Java application to suggest a solution, nor whether supporting this would complicate other things (e.g., if using the n-gram directories, does this no longer check for other errors?), so apologies if I've posted an untenable request.

Dammy159753 commented 5 years ago

Can you find a solution to solve n-gram?

Bachstelze commented 5 years ago

We could try to add it to the server command: cmd = [java_path, '-cp', jar_path, 'org.languagetool.server.HTTPServer'] It should work with the other error detectors, but it will slow down the detection and wouldn't be the standard setting.

jxmorris12 commented 4 years ago

Hi! Since this project has been abandoned, I started a new fork over at https://github.com/jxmorris12/language_tool_python.

My version supports new versions of Java and LanguageTool. language-check is stuck on Java 8 and LanguageTool 3.2; latest versions are Java 14 and LanguageTool 4.9!

I'm happy to help you with your issue if you raise it over at my repository! Thanks!