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 run annotate.py #5

Open
TarunTater opened this issue Sep 1, 2021 · 0 comments
Open

Unable to run annotate.py #5

TarunTater opened this issue Sep 1, 2021 · 0 comments

Comments

@TarunTater
Copy link

TarunTater commented Sep 1, 2021

We are trying to run annotate.py but run into this error :

  File "annotate.py", line 164, in <module>
    fout=os.path.join(args.dout, split) + '.jsonl')
  File "annotate.py", line 132, in process_examples
    a = annotate_example(d, tables[d['table_id']])
  File "annotate.py", line 40, in annotate_example
    ann['question'] = annotate(example['question'])
  File "annotate.py", line 24, in annotate
    for s in client.annotate(sentence):
TypeError: 'Document' object is not iterable
[Thread-0] INFO CoreNLP - CoreNLP Server is shutting down.```

We have tried python3.6 with stanza 1.1 and tensorflow 1.4 as mentioned. Even tried downgrading stanza as mentioned here : 
https://github.com/salesforce/WikiSQL/issues/66 . But that creates other dependency issues. Can you please provide a list of requirements with versions which work or maybe a dockerfile. or any ideas on how to fix this error? 
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

1 participant