Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BingkangShi opened this issue Dec 10, 2021 · 1 comment

Comments

@BingkangShi
Copy link

BingkangShi commented Dec 10, 2021

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 BingkangShi changed the title cannot install language-check & language-check's version too old, and it's solution cannot install language-check & language-check's version too old, and their solution Dec 10, 2021
@BingkangShi BingkangShi changed the title cannot install language-check & language-check's version too old, and their solution cannot install language-check & language-check's version's too old, and their solution Dec 10, 2021
@cookielee77
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants