demo-chinese-text-binary-classification-with-bert icon indicating copy to clipboard operation
demo-chinese-text-binary-classification-with-bert copied to clipboard

当我用hub.Moudle去加载本地文件的时候报错,请教一下

Open yw1991 opened this issue 5 years ago • 6 comments

E:\Anaconda\lib\site-packages\tensorflow_hub\registry.py in call(self, args, **kwargs) 43 raise RuntimeError( 44 "Missing implementation that supports: %s(%r, **%r)" % ( ---> 45 self._name, args, kwargs)) 46 47

RuntimeError: Missing implementation that supports: loader(*('./chinese_L-12_H-768_A-12',), **{})

我去官网上去看了 说是支持加载本地模型,去git上看源码也是发现可以的,所以报这个错不知道怎么改?上不了外网,所以没有去试url,谢谢

yw1991 avatar Jun 05 '19 01:06 yw1991

https://github.com/tensorflow/hub/blob/master/docs/common_issues.md 参考这个方式下载到本地使用(不是直接用在bert下载的chinese_L-12_H-768_A-12文件,两者不一样哦

zhujingya avatar Aug 23 '19 09:08 zhujingya

参考这篇文章https://www.jianshu.com/p/b96bccf75a39 下载解压后,将"bert_model_hub"参数改为解压目录即可,例如"/data/mlable/embeding/"(这个是解压后的路径)

dj123jary avatar Dec 25 '19 02:12 dj123jary

请问楼主解决了吗

linzhang92 avatar Mar 16 '20 09:03 linzhang92

解决了 已经

yw1991 avatar Mar 16 '20 09:03 yw1991

请问您是怎样解决的,我也遇到了同样的问题,感谢~

发送自 Windows 10 版邮件https://go.microsoft.com/fwlink/?LinkId=550986应用


发件人: yw1991 [email protected] 发送时间: Monday, March 16, 2020 5:48:13 PM 收件人: wshuyi/demo-chinese-text-binary-classification-with-bert demo-chinese-text-binary-classification-with-bert@noreply.github.com 抄送: linzhang92 [email protected]; Comment [email protected] 主题: Re: [wshuyi/demo-chinese-text-binary-classification-with-bert] 当我用hub.Moudle去加载本地文件的时候报错,请教一下 (#3)

解决了 已经

― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/wshuyi/demo-chinese-text-binary-classification-with-bert/issues/3#issuecomment-599440292, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALITGZRZTCRH52XBEGXDIM3RHXYV3ANCNFSM4HTLH7BQ.

linzhang92 avatar Mar 16 '20 09:03 linzhang92

这个是我当时运行的文件  你可以去看看   

------------------ 原始邮件 ------------------ 发件人: "linzhang92"<[email protected]>; 发送时间: 2020年3月16日(星期一) 下午5:49 收件人: "wshuyi/demo-chinese-text-binary-classification-with-bert"<demo-chinese-text-binary-classification-with-bert@noreply.github.com>; 抄送: "於伟"<[email protected]>;"Author"<[email protected]>; 主题: Re: [wshuyi/demo-chinese-text-binary-classification-with-bert] 当我用hub.Moudle去加载本地文件的时候报错,请教一下 (#3)

请问您是怎样解决的,我也遇到了同样的问题,感谢~

发送自 Windows 10 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>应用


发件人: yw1991 <[email protected]> 发送时间: Monday, March 16, 2020 5:48:13 PM 收件人: wshuyi/demo-chinese-text-binary-classification-with-bert <demo-chinese-text-binary-classification-with-bert@noreply.github.com> 抄送: linzhang92 <[email protected]>; Comment <[email protected]> 主题: Re: [wshuyi/demo-chinese-text-binary-classification-with-bert] 当我用hub.Moudle去加载本地文件的时候报错,请教一下 (#3)

解决了 已经

― You are receiving this because you commented. Reply to this email directly, view it on GitHub<https://github.com/wshuyi/demo-chinese-text-binary-classification-with-bert/issues/3#issuecomment-599440292>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALITGZRZTCRH52XBEGXDIM3RHXYV3ANCNFSM4HTLH7BQ>.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

yw1991 avatar Mar 16 '20 10:03 yw1991