-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Problem1: can't install language-check.
In installing the dependencies of CLARE, I faced a problem: ERROR: Failed building wheel for language-check, and terminal in Linux said: urllib.error.HTTPError: HTTP Error 403: Forbidden.
Problem2: the project of language-check is too old as it's latest update is in 3 years ago, so it cannot work well today.
It is stuck on Java 8 and LanguageTool 3.2, and today's Java's version is up to 15 as well as LanguageTool's version is 5.5.
Solution of 1&2: not use language-check but use language_tool_python instead.
(1) language_tool_python is a new fork of language-check over at https://github.com/jxmorris12/language_tool_python. As it's contributor jxmorris12 said in issues in language-check:"Since this project has been abandoned...".
(2) Latest versions of language_tool_python are Java 14 and LanguageTool 5.5. And it's installation won't cause HTTP Error 403!
(3) Now it can replace language-check, because their API is very close.
How to install:
(1) pip install language_tool_python
(2) make sure your environment has Java already (I insatlled Java8)
(3) manually download LanguageTool-stable.zip form https://pypi.org/project/language-tool-python/
(4) add :
export LTP_PATH=/home/username/yournewfolder
in your linux system bashrc
(5) unzip LanguageTool-stable.zip ,and put folder "LanguageTool-5.5" under the path where we just add into bashrc
(6) restart a terminal ,test language_tool_python follow the sample as https://pypi.org/project/language-tool-python/
In the last, I highly suggest author to update the dependencies of this project!