allenai / allenai/scibert

No default predictor for model type bert_crf_tagger.

オープン
#102 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
1.7k
フォーク
232
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。