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

unable to load library CoreNLPClient #67

Open
gcolabexp opened this issue Jun 18, 2020 · 2 comments
Open

unable to load library CoreNLPClient #67

gcolabexp opened this issue Jun 18, 2020 · 2 comments

Comments

@gcolabexp
Copy link

Hello Team,

While executing the git code for annotate.py i am getting below error for CoreNLPClient

annotating data/train.jsonl
loading tables
100% 18585/18585 [00:00<00:00, 19025.85it/s]
loading examples
0% 0/56355 [00:00<?, ?it/s]
Traceback (most recent call last):
File "annotate.py", line 113, in
a = annotate_example(d, tables[d['table_id']])
File "annotate.py", line 38, in annotate_example
ann['question'] = annotate(example['question'])
File "annotate.py", line 20, in annotate
client = CoreNLPClient(default_annotators='ssplit,tokenize'.split(','))
NameError: name 'CoreNLPClient' is not defined

Please advise

@Timothyxxx
Copy link

Timothyxxx commented Aug 3, 2021

Hi~I met the same problem, iit is because the change arder of stanza, the solution is change "from stanza.nlp.corenlp import CoreNLPClient" to "from stanza.server.client import CoreNLPClient", and go further you may also need to adjust "t.word", "t.t.originalText", "t.after" to others since corenlp has changed a lot in their annotation returned formulation.

@TarunTater
Copy link

@Timothyxxx - so which version of stanza and corenlp are you using? because I am hitting the same problem. i was able to navigate it using from stanza.nlp.corenlp import CoreNLPClient but not sure what are the changes for other attributes.

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

3 participants