Unable to run annotate.py
TarunTater opened this issue · 0 comments
TarunTater commented
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?