在colab笔记本中运行python脚本,ModuleNotFoundError
我是Colab的新手,我试图在这个存储库中重现预训练的BERT模型的微调: 我正在尝试使用以下代码运行run_bluebert_ner.py脚本(从其目录):在colab笔记本中运行python脚本,ModuleNotFoundError,python,google-colaboratory,Python,Google Colaboratory,我是Colab的新手,我试图在这个存储库中重现预训练的BERT模型的微调: 我正在尝试使用以下代码运行run_bluebert_ner.py脚本(从其目录): !python run_bluebert_ner.py --do_prepare=true \ --task_name='bc5cdr' \ --do_train=true \ --do_eval=true \ --do_predict=true \ --vocab_file=/content/ncbi_bluebert/b
!python run_bluebert_ner.py --do_prepare=true \
--task_name='bc5cdr' \
--do_train=true \
--do_eval=true \
--do_predict=true \
--vocab_file=/content/ncbi_bluebert/bluebert_model/vocab.txt \
--bert_config_file=/content/ncbi_bluebert/bluebert_model/bert_config.json \
--init_checkpoint=/content/ncbi_bluebert/bluebert_model/bert_model.ckpt.data-00000-of-00001 \
--data_dir=/content/ncbi_bluebert/data/BC5CDR \
--num_train_epochs=1.0 \
--do_lower_case=False \
--output_dir=output
这给了我这个错误信息:
Traceback (most recent call last):
File "run_bluebert_ner.py", line 19, in <module>
from bluebert.conlleval import evaluate, report_notprint
ModuleNotFoundError: No module named 'bluebert'
这似乎至少找到了bluebert,但在以下方面失败:
AttributeError: only_check_args
使用标志删除所有标志。delattr没有帮助
有人有什么建议吗
AttributeError: only_check_args