CasRel
CasRel copied to clipboard
请问训练的时候报错:TypeError: get_encoders() got an unexpected keyword argument 'use_adapter'是为什么?
你好,我在复现你的代码的时候
在train时,报错:TypeError: get_encoders() got an unexpected keyword argument 'use_adapter'
请问你知道这是为什么吗?(PS:自己在网上查了很久,没能解决。。。)
It seems like a keras-trainsformer's version problem. Maybe you can have a try at this dependency:
pip install tensorflow==1.13.1 tensorflow-gpu==1.13.1 keras==2.2.4 keras-bert==0.80.0 keras-transformer==0.31.0
同问这个问题,版本都是正确的
@resetLi @tangnn hello,更换一下keras-bert的版本就可以喽~ 亲测~
pip install keras-bert==0.81.1
# 参考自:https://github.com/CyberZHG/keras-bert/issues/116
刚试了
@resetLi @tangnn hello,更换一下keras-bert的版本就可以喽~ 亲测~
pip install keras-bert==0.81.1 # 参考自:https://github.com/CyberZHG/keras-bert/issues/116
刚试过了,楼上老哥正解,感谢