salesforce / WikiSQL

A large annotated semantic parsing corpus for developing natural language interfaces.
BSD 3-Clause "New" or "Revised" License
1.6k stars 320 forks source link

TypeError: 'Document' object is not iterable annotate.py #66

Closed ArashEsk95 closed 4 years ago

ArashEsk95 commented 4 years ago

File "C:/Users/Admin/Desktop/WikiSQL-master/annotate.py", line 21, in annotate for s in client.annotate(sentence): TypeError: 'Document' object is not iterable I'm Using the stanza 1.0.1 and corenlp 2020

vzhong commented 4 years ago

Hi, I think Stanford CoreNLP made a non-backwards-compatible update. You'll most likely need to use the old stanza and old CoreNLP. An easy way to do this would be to use the docker image.

TarunTater commented 2 years ago

@vzhong - any ideas which versions of stanza and CoreNLP this is compatible with ? Because could not find the matching information here : https://github.com/salesforce/WikiSQL/blob/master/requirements.txt and https://github.com/salesforce/WikiSQL/blob/master/test/Dockerfile .

vzhong commented 2 years ago

Can you please try 0.3 to see if that works? If it does then I’ll put it in the docker image On Aug 24, 2021, 7:30 AM -0700, Tarun Tater @.***>, wrote:

@vzhong - any ideas which versions of stanza and CoreNLP this is compatible with ? Because could not find the matching information here : https://github.com/salesforce/WikiSQL/blob/master/requirements.txt and https://github.com/salesforce/WikiSQL/blob/master/test/Dockerfile . — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

TarunTater commented 2 years ago

@vzhong yes, 0.3 worked for navigating this error. thanks