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

ImportError: cannot import name 'Ontonotes' from 'allennlp.data.dataset_readers.dataset_utils' #1105

Open
jeswan opened this issue Sep 17, 2020 · 2 comments

Comments

@jeswan
Copy link
Contributor

jeswan commented Sep 17, 2020

Issue by csyhhu
Friday Jul 31, 2020 at 09:26 GMT
Originally opened as nyu-mll/jiant#1105


Hi !

I try to download and extract ontonotes data using get_and_process_all_data.sh, and it comes out with the error as :

ImportError: cannot import name 'Ontonotes' from 'allennlp.data.dataset_readers.dataset_utils'

I have checked allennlp.data.dataset_readers.dataset_utils, indeed there is no Ontonotes. And I look back to allennlp to search Ontonotes, the only result is shown here: https://github.com/allenai/allennlp/blob/c4c532d25e012dbe6ab1ac14bca75e53e0acc621/scripts/compile_coref_data.sh

without any classes named as Ontonotes.

Here is my version:
allennlp==1.1.0rc2.dev20200724
allennlp-models==1.1.0rc2.dev20200724

Or should I follow the instruction in README.md to use extract_ontonotes_all.py to process the ontonotes datasets?

Best regards

@jeswan
Copy link
Contributor Author

jeswan commented Sep 17, 2020

Comment by sleepinyourhat
Monday Aug 03, 2020 at 14:41 GMT


Hrm—I don't know that part of the code well. @HaokunLiu @zphang, any guess?

@jeswan
Copy link
Contributor Author

jeswan commented Sep 17, 2020

Comment by sagnik
Wednesday Sep 16, 2020 at 18:45 GMT


This is pretty late, but I think this is because of a version mismatch. enviornment.yml specifies the allennlp version to be 0.8.4. I think if you create a jiant environment using conda create -f environment.yml it would pull down the proper version of AllenNLP and things would work.

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