Skip to content

Unable to run annotate.py #5

@TarunTater

Description

@TarunTater

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? 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions