lightCraft2020
lightCraft2020
Got same errors. Have you found any solution?
[update the requirements.txt file ](https://github.com/weizhepei/CasRel/issues/67#issuecomment-1070453027) can solve the problem. ``` keras-bert = 0.80.0 tensorflow-gpu = 1.13.1 keras-layer-normalization==0.15.0 keras-multi-head==0.28.0 keras-pos-embd==0.12.0 keras-position-wise-feed-forward==0.7.0 keras-transformer==0.33.0 ```
@Hou-jing 看了下大佬CyberZHG写的keras-bert,原来大佬将以前引用的keras都改成tf.keras造成的,将相关的依赖库降级即可。下面是我的requirements.txt文件,可以跑通,仅供参考。 ``` absl-py==1.0.0 astor==0.8.1 cached-property==1.5.2 colorama==0.4.4 gast==0.5.3 grpcio==1.44.0 h5py==3.6.0 importlib-metadata==4.11.3 Keras==2.2.4 Keras-Applications==1.0.8 keras-bert==0.80.0 keras-embed-sim==0.10.0 keras-layer-normalization==0.15.0 keras-multi-head==0.28.0 keras-pos-embd==0.12.0 keras-position-wise-feed-forward==0.7.0 Keras-Preprocessing==1.1.2 keras-self-attention==0.51.0 keras-transformer==0.33.0 Markdown==3.3.6 mock==4.0.3 numpy==1.21.5 protobuf==3.19.4 PyYAML==6.0 scipy==1.7.3 six==1.16.0 tensorboard==1.13.1...
@scarydemon2 [参考这里的链接,试下](https://github.com/weizhepei/CasRel/issues/67#issuecomment-1070453027)
 @Steffy-zxf 遇到同样的问题,是什么原因呢?是需要设置哪个参数么?