detecting-scientific-claim icon indicating copy to clipboard operation
detecting-scientific-claim copied to clipboard

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

Open sny-tong opened this issue 4 years ago • 2 comments

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.

sny-tong avatar Dec 14 '21 08:12 sny-tong

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!

titipata avatar Dec 14 '21 09:12 titipata

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

sny-tong avatar Dec 16 '21 01:12 sny-tong