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

No default predictor for model type bert_crf_tagger. #102

Open
dpappas opened this issue Aug 5, 2020 · 1 comment
Open

No default predictor for model type bert_crf_tagger. #102

dpappas opened this issue Aug 5, 2020 · 1 comment

Comments

@dpappas
Copy link

dpappas commented Aug 5, 2020

Hi everyone!

I tried the following command to use my fine-tuned model for NER.

python -m allennlp.run predict --output-file=out.txt --include-package=scibert ./ner_model_bc5cdr/model.tar.gz ./data/ner/bc5cdr/test.txt

I have used the same commands you mention in your readme file and a virtual environment so the versions I use are exactly the same as yours.

I get the following error:
'No default predictor for model type bert_crf_tagger.\nPlease specify a predictor explicitly.'

How can I overcome this problem? Also, how do I specify the predictor?
I tried
--predictor=ner_model_bc5cdr
--predictor=./scibert/models/bert_crf_tagger
--predictor=./scibert/models/bert_crf_tagger.py
but nothing worked.

Can you help me?

@aadarshsingh191198
Copy link

--predictor sentence-tagger is probably what you are looking for

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