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

TypeError: __init__() missing 1 required positional argument: 'dataset_reader' #29

Open
sny-tong opened this issue Dec 14, 2021 · 2 comments

Comments

@sny-tong
Copy link

When i use the sentence "predictor = discourse.DiscourseCRFClassifierPredictor()", it throws back this error: TypeError: init() missing 1 required positional argument: 'dataset_reader'.
What can i do to solve this problem?
Thanks.

@titipata
Copy link
Owner

Hi @sny-tong. I think it's likely that the allennlp has updated quite a bit since the release of my code. In my experiment, I used allennlp version 0.9.0. I think one way to do that is to install the previous version of AllenNLP and try it to see if it works.

It may require a bit of rewriting the code if you would like to use the recent version of AllenNLP. Hope this helps a bit!

@sny-tong
Copy link
Author

But I just used allennlp version 0.9.0. It's the same version you used.

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

2 participants