背景

使用官方bert模型https://github.com/google-research/bert文本分类时(运行run_classifier.py函数),遇到的一些问题记录

问题记录

  1. 官方模型要求的版本tensorflow >= 1.11.0,现在安装的是2.15.0,2.x版和1.x版之间有一些函数变了
  2. 训练时,一部分问题参考https://zhuanlan.zhihu.com/p/390004994
  3. 预测时,问题参考Bert模型预测时出现的问题:ValueError: Assignment map with scope only name bert/embeddings/layer_normalizations
  4. 使用自己数据集时,需要新建一个数据类,实现里面输入文本标签部分怎么取

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注