CLARE icon indicating copy to clipboard operation
CLARE copied to clipboard

cannot install language-check & language-check's version's too old, and their solution

Open BingkangShi opened this issue 4 years ago • 1 comments

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!

BingkangShi avatar Dec 10 '21 07:12 BingkangShi

Hi,

Thanks for your valuable suggestions. I will update the README refer to your post.

Unfortunately, It's difficult for me to update the dependencies as I already lost access to my label's computer. I don't have any resources to test which dependency will work on my old code which was developed last year.

Thanks!

cookielee77 avatar Dec 10 '21 23:12 cookielee77