检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
请求示例 请求示例1(识别分析命名实体,支持的领域类型为通用领域) POST https://{endpoint}/v1/{project_id}/nlp-fundamental/ner/domain Request Header: Content-Type: application
是 application/json Content-Length 请求body长度,单位为Byte。 POST/PUT请求为可选, GET不包含。 3495 X-Auth-Token 用户Token。
请求示例 请求示例(计算文本语义相似度) POST https://{endpoint}/v1/{project_id}/nlp-fundamental/text-similarity Request Header: Content-Type: application/json
请求示例 请求示例(判断“XXX去屑洗发水,全国包邮”是否是广告) POST https://{endpoint}/v1/{project_id}/nlu/classification Request Header: Content-Type: application/
请求示例 请求示例(计算句向量) POST https://{endpoint}/v1/{project_id}/nlp-fundamental/sentence-embedding Request Header: Content-Type: application/json
请求示例 请求示例(识别分析命名实体) POST https://{endpoint}/v1/{project_id}/nlp-fundamental/ner Request Header: Content-Type: application/json X-Auth-Token
\":\"" + text + "\"}"; OutputStreamWriter osw = new OutputStreamWriter(connection.getOutputStream(), "UTF-8"); osw.append
content + "\" ,\"type\":0}"; OutputStreamWriter osw = new OutputStreamWriter(connection.getOutputStream(), "UTF-8"); osw.append
entity + "\" ,\"type\":3}"; OutputStreamWriter osw = new OutputStreamWriter(connection.getOutputStream(), "UTF-8"); osw.append
请求示例 请求示例(意图理解) POST https://{endpoint}/v1/{project_id}/nlu/semantic-parser Request Header: Content-Type: application/json X-Auth-Token
的属性级情感) POST https://nlp-ext.cn-north-4.myhuaweicloud.com/v1/{{project_id}}/nlu/aspect-sentiment Request Header: Content-Type: application/json
请求示例 请求示例(创建文档翻译任务) POST https://{endpoint}/v1/{project_id}/machine-translation/file-translation/jobs Request Header: Content-Type:application
"\",\"lang\":\"zh\"}"; OutputStreamWriter osw = new OutputStreamWriter(connection.getOutputStream(), "UTF-8"); osw.append
请求示例 请求示例(文本翻译) POST https://{endpoint}/v1/{project_id}/machine-translation/text-translation Request Header: Content-Type:application/
+ "\",\"limit\": 5}"; OutputStreamWriter osw = new OutputStreamWriter(connection.getOutputStream(), "UTF-8"); osw.append
//{endpoint}/v1/{project_id}/machine-translation/file-translation/567e6536-****-****-****-826321939656 Request Header: Content-Type:application
\":\"" + text + "\"}"; OutputStreamWriter osw = new OutputStreamWriter(connection.getOutputStream(), "UTF-8"); osw.append
{project_id}/nlu/aspect-sentiment/advance' # endpoint和project_id需替换 token = '用户对应region的token' header = { 'Content-Type': 'application
Content-Type:消息体的类型(格式),必选,默认取值为“application/json”,有其他取值时会在具体接口中专门说明。 X-Auth-Token:用户Token,可选,当使用Token方式认证时,必须填充该字段。用户Token请参考3.2 认证鉴权。
POST https://iam.cn-north-4.myhuaweicloud.com/v3/auth/tokens Request Header: Content-Type: application/json Request Body: { "auth": {