-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'xmnlp' has no attribute 'set_model' #41
Comments
hi @xyz-hcy , 可否提供 xmnlp 的版本,我在最新版本下测试是没问题的
|
感谢您的回复!我这边找到模块内定义的所有名称存在问题(重复下载未解决):
|
可能装了多个版本,可以试试把所有的 xmnlp 版本都卸载了,再重新安装 |
谢谢您及时的回复!这边还是有个问题
在运行python文件时出错:
|
@xyz-hcy 你是不是在当前路径新建了一个 xmnlp.py 文件呢? 如果是的话把这个文件重命名下,比如改成 xmnlp_demo.py 试试。因为当前目录有重名文件的话 import 时会优先 import 当前目录的文件。 |
好的谢谢!问题解决了! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,通过方式二配置模型:xmnlp.set_model('/path/to/xmnlp-models')
报错:AttributeError: module 'xmnlp' has no attribute 'set_model'
如何解决?
The text was updated successfully, but these errors were encountered: