Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/276.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在colab笔记本中运行python脚本,ModuleNotFoundError_Python_Google Colaboratory - Fatal编程技术网

在colab笔记本中运行python脚本,ModuleNotFoundError

在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

我是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/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