我已经从transformer存储库下载了HuggingFace BERT模型,找到了here,并希望通过使用run_ner.py脚本在自定义NER标签上训练模型,因为它在“命名实体识别”一节中被引用为我在代码中定义了模型(“bert-base-德语-大小写”)、数据(“数据/语句_数据.txt”)和标签(“data_dir /labels.txt)”作为默认值。model from a BertForSequenceClassification model).我的C
the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassificationmodel from a BertForSequenceClassification model).我的目的是找到一个预先训练的模型来为我的文本创建嵌入向量,以便它可以在下游文本中使用。我不想创建自己的预训练
当我尝试使用keras的model.load_weights I get OSError: Unable to open file (Truncated file: eof = 41091072)加载权重时,下面是完整的错误跟踪:
model.load_weights(get_file(fname, "E:/Work/Practical\ Deep\ Learning\ Course/my\ notebooks
我微调了一个经过预先训练的伯特模型,它来自Huggingface,在一个自定义的数据集上使用火把-闪电对10个时代进行了调整。我用重量和偏倚记录器记录日志。model from a BertForPreTraining model).
- This IS NOT expected if you are initializing BertForSequenceClassificationmodel from a BertForSequenceClassification model).Some weight