Skip to content
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

运行实例代码出错 #53

Open
yulu12138 opened this issue Nov 14, 2020 · 0 comments
Open

运行实例代码出错 #53

yulu12138 opened this issue Nov 14, 2020 · 0 comments

Comments

@yulu12138
Copy link

在运行实例代码时报错
from senta import Senta
my_senta = Senta()
use_cuda = True
my_senta.init_model(model_class="ernie_1.0_skep_large_ch", task="sentiment_classify", use_cuda=use_cuda)
这一步没有报错,在
texts = ["中山大学是岭南第一学府"]
result = my_senta.predict(texts)
print(result)
这一步时,报了如下错误,不知道该如何修改。
TypeError: init(): incompatible constructor arguments. The following argument types are supported:
1. paddle.fluid.core_avx.PaddleTensor()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant