425776024 / nlpcda

一键中文数据增强包 ; NLP数据增强、bert数据增强、EDA:pip install nlpcda

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

请问使用simbert功能需要的tf、keras、bert4keras对应的版本是多少

robbenplus opened this issue · comments

我的版本信息如下
bert4keras 0.7.7
keras 2.4.3
tensorflow 2.2.0

导入nlpcda提示 ‘ Simbert不能正常使用,除非你安装:bert4keras、tensorflow ,为了安装快捷,没有默认安装.... module 'tensorflow.compat.v2' has no attribute 'internal' ’

我的版本信息如下
bert4keras 0.7.7
keras 2.4.3
tensorflow 2.2.0

导入nlpcda提示 ‘ Simbert不能正常使用,除非你安装:bert4keras、tensorflow ,为了安装快捷,没有默认安装.... module 'tensorflow.compat.v2' has no attribute 'internal' ’

去原作者下面看

解决了么

解决了么

你好,我查了一下当时的测试工程,环境是:

keras==2.3.1
bert4keras==0.7.7
# tensorflow==1.13.1
tensorflow-gpu==1.13.1

后续会更新到项目的提示中

我的版本信息如下 bert4keras 0.7.7 keras 2.4.3 tensorflow 2.2.0

导入nlpcda提示 ‘ Simbert不能正常使用,除非你安装:bert4keras、tensorflow ,为了安装快捷,没有默认安装.... module 'tensorflow.compat.v2' has no attribute 'internal' ’

你好,我查了一下当时的测试工程,环境是:

keras==2.3.1
bert4keras==0.7.7
# tensorflow==1.13.1
tensorflow-gpu==1.13.1

百度下报错信息就能解决啊,我记得tf2.3好像是可以?

是的,但是好多网友说版本问题导致报错,容易误导,这个版本只是参考

commented

我两个都安装了,bert4keras:0.10.6 tensorflow:2.1.0,一样报错

看上文哈⬆️

我两个都安装了,bert4keras:0.10.6 tensorflow:2.1.0,一样报错

image

commented

看上文哈⬆️

我两个都安装了,bert4keras:0.10.6 tensorflow:2.1.0,一样报错

image

ok了,去simbert的github页面上写的是bert4keras=0.7.7,tensorflow版本没改也没问题。