文档

命名实体识别(多语言高级版)

更新时间:

命名实体识别(高级版-多语言)

调用须知

  • 该服务为高级版的能力,需要开通高级版才能免费调用。点击这里确认开通状态:点击确认开通

  • 支持语言:英语、越南语、印尼语、泰语、马来语

  • 支持领域:电商领域

  • 能力说明:针对电商领域,识别品牌、产品、型号等,同时也包括一些通用领域实体如人名、地名、机构名、时间日期等。

  • 不支持定制:不支持自定义词表或正则表达式等定制方式

请求参数

名称

类型

是否必选

示例值

描述

Action

String

GetNerCustomizedSeaEcom

系统规定参数,取值:GetNerCustomizedSeaEcom

ServiceCode

String

alinlp

固定值,一定是alinlp

Language

String

en

语种代码(越南语:vi 印尼语:id 泰语:th 马来语:ms 英语:en)

Text

String

Text

待处理单句(最长500个字符)

返回数据

名称

类型

示例值

描述

RequestId

String

FA53D08F-37D1-4D81-BEE7-41F24E825F60

唯一请求id,排查问题的依据

Data

String

{
  "success": true,
  "tracerId": "2019a1bb-96ab-43cb-94ba-4face5aba579",
  "result": {
    "output": [
      {
        "sentence": "Kính Mat Ray-Ban 0RB3129 W0226 Màu Xanh Riêu Gong Vang RBS07622",
        "sentence_seg": [
          "Kính",
          "Mat",
          "Ray",
          "-",
          "Ban",
          "0RB3129",
          "W0226",
          "Màu",
          "Xanh",
          "Riêu",
          "Gong",
          "Vang",
          "RBS07622"
        ],
        "tags": [
          {
            "class": "brand",
            "end": 17,
            "span": "Ray-Ban",
            "start": 10
          },
          {
            "class": "color",
            "end": 46,
            "span": "Xanh Riêu",
            "start": 37
          }
        ]
      }
    ]
  }
}
  • output:为具体输出结果

  • sentence:即原始输入的句子

  • sentence_seg:分音节后结果

  • 表‘tags’:一个list,每个元素是个dictionary,对应一个命名实体

  • class:命名实体类别

  • start:命名实体起始字符位置

  • end:命名实体结束字符位置,

  • span:命名实体字符串

调用接入

  1. 代码接入请参考:快速入门

  2. 在线快速试用请参考:在线试用

已支持电商实体类别

  • 品类

    • 举例:“修身连衣裙”中的“连衣裙”

  • 品类修饰词

    • 举例:“汽车脚垫”中的“汽车”

  • 品牌

    • 举例:“小米手机”中的“小米”

  • 材质

  • 风格

  • 款式元素

  • 颜色

  • 功能功效

  • 尺寸规格

  • 品质成色

  • 场景

  • 人群

  • 套装

  • 时间季节

  • 型号

  • 新品

  • 系列

  • 营销服务

  • 地点地域

  • 人名

  • 影视名称

  • 机构实体

  • 游戏名称

  • 数字

  • 单位

  • 普通词

  • 新词

  • 修饰

  • 专有名词

  • 符号

  • 前缀

  • 后缀

  • 赠送

  • 否定

  • 代理

  • 文娱书文曲

错误码

调用过程中如果出现错误可对照下表,查看对应描述,描述中包含具体错误原因和解决方案

HttpCode

错误码

错误信息

描述

400

UserStatusInvalid

The user status is invalid.

用户状态无效,请检查账户是否欠费和有未支付的账单

400

BasicServiceNotActivated

The NLP API (Version : base) service has not been activated. Please click the url to confirm the activation status:https://common-buy.aliyun.com/?commodityCode=nlp_alinlpBasePost_public_cn#/buy

NLP API(基础版)服务未开通,请点击链接确认开通状态:https://common-buy.aliyun.com/?commodityCode=nlp_alinlpBasePost_public_cn#/buy

400

AdvancedServiceNotActivated

The NLP API (Version : advanced) service has not been activated. Please click the url to confirm the activation status:https://common-buy.aliyun.com/?commodityCode=nlp_alinlpAdvancedPost_public_cn#/buy

NLP API(高级版)服务未开通,请点击链接确认开通状态:https://common-buy.aliyun.com/?commodityCode=nlp_alinlpAdvancedPost_public_cn#/buy

400

IndustryServiceNotActivated

The NLP API (Version : industry) service has not been activated. Please click the url to confirm the activation status:https://common-buy.aliyun.com/?commodityCode=nlp_alinlpIndustryPost_public_cn#/buy

NLP API(行业应用版)服务未开通,请点击链接确认开通状态:https://common-buy.aliyun.com/?commodityCode=nlp_alinlpIndustryPost_public_cn#/buy

401

InvalidParameter

The parameter is invalid.

参数无效,请检查入参

403

Forbidden.NoAuth

You are not authorized to operate on the specified resource. Please click the URL for help information:https://help.aliyun.com/document_detail/177209.html

您的账号无权限操作指定的资源,请点击URL以获取帮助信息:https://help.aliyun.com/document_detail/177209.html

405

TextLimitExceeded

The maximum length of the text is exceeded.

文本长度超过限制

406

TextCodingError

An encoding error occurred to the input text.

输入文本编码错误

410

FrameworkError

Framework internal server error.

框架错误

411

FrameworkApiError

Framework API error.

框架API错误

412

FrameworkFormatError

Framework request format error.

框架请求格式错误

413

FrameworkReturnError

Framework return type format error.

框架返回格式错误

429

Throttling.User

Flow control has been triggered.

超过了每秒最大查询数(QPS),请单击URL以获取帮助信息:https://help.aliyun.com/document_detail/69780.html#p-wq5-zb9-5wu

500

InternalError

A server error occurred while processing your request. Please try again later or contact customer support.

处理您的请求时发生服务错误,请稍后再试或联系客户支持。

  • 本页导读 (0)
文档反馈