macanv / BERT-BiLSTM-CRF-NER

Tensorflow solution of NER task Using BiLSTM-CRF model with Google BERT Fine-tuning And private Server services
https://github.com/macanv/BERT-BiLSMT-CRF-NER
4.68k stars 1.25k forks source link

训练时tensorflow没有相关属性 #317

Closed Ivan-Ji closed 4 years ago

Ivan-Ji commented 4 years ago
Traceback (most recent call last):
  File "run.py", line 46, in <module>
    train_ner()
  File "run.py", line 39, in train_ner
    train(args=args)
  File "/home/git_project/BERT-BiLSTM-CRF-NER/bert_base/train/bert_lstm_ner.py", line 619, in train
    early_stopping_hook = tf.contrib.estimator.stop_if_no_decrease_hook(
AttributeError: module 'tensorflow.contrib.estimator' has no attribute 'stop_if_no_decrease_hook'

我在项目文件里使用python run.py命令训练的时候出现了上述情况,我本地tf版本为1.14.0在网上也查过了这是tf的版本不对,所以想问一下bert_base文件夹下的tf版本是多少,能否更新一下最新的文件呢

macanv commented 4 years ago

1.13.1