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

Nlp_automl20191111 版本能不能调用情绪识别服务 #26

Open
nelist opened this issue Jan 29, 2024 · 1 comment
Open

Nlp_automl20191111 版本能不能调用情绪识别服务 #26

nelist opened this issue Jan 29, 2024 · 1 comment

Comments

@nelist
Copy link

nelist commented Jan 29, 2024

情绪识别服务 https://help.aliyun.com/document_detail/181220.html?spm=a2c4g.181139.0.i0

我使用Nlp_automl20191111尝试调用 情绪识别服务 版本一直报错400, Specified parameter Version is not valid
`
AlibabaCloud.SDK.Nlp_automl20191111.Models.RunPreTrainServiceRequest runPreTrainServiceNewRequest = new AlibabaCloud.SDK.Nlp_automl20191111.Models.RunPreTrainServiceRequest { PredictContent="我爱你",ServiceName= "DeepEmotion",ServiceVersion= "2020-06-29" };

AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();

var rsp = await _httpClient.RunPreTrainServiceWithOptionsAsync(runPreTrainServiceNewRequest, runtime);`

我看了alinlp-20200629版本里已经没有RunPreTrainService方法了 也不知道调哪一个
官方示例 链接到 aliyun-openapi-net-sdk 搞不懂 纯openapi方法也没有

不知道哪一个sdk能调用这个服务

@TsinghuaDream
Copy link

应该是endpoint填错了 试下这个nlp-automl.cn-hangzhou.aliyuncs.com

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

2 participants