文档

依存句法分析(电商)

更新时间:

依存句法分析(高级版-电商领域)

调用须知

  • 该服务为高级版的能力,需要开通高级版才能免费调用。点击这里确认开通状态:https://common-buy.aliyun.com/?commodityCode=nlp_alinlpAdvancedPost_public_cn

  • 支持语言:中文

  • 支持领域:电商领域

  • 能力说明:通过分析句子中词与词之间的依存关系,从而捕捉到词语的句法结构信息(如主谓、动宾、定中等结构关系),并使用树状结构来表示句子的句法结构信息(如主谓宾、定状补等)。

请求参数

名称

类型

是否必选

示例值

描述

Action

String

GetDpChEcom

系统规定参数,取值:GetDpChEcom

ServiceCode

String

alinlp

固定值,只支持alinlp

Text

String

我爱中国

文本,最大长度为120个字

返回数据

名称

类型

示例值

描述

RequestId

String

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

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

Data

String

{
  "result": [
    {
      "head": 2,
      "pos": "NR",
      "id": 1,
      "label": "SBV",
      "word": "小明"
    },
    {
      "head": 0,
      "pos": "VV",
      "id": 2,
      "label": "ROOT",
      "word": "爱"
    },
    {
      "head": 2,
      "pos": "NR",
      "id": 3,
      "label": "VOB",
      "word": "中国"
    }
  ],
  "success": true
}
  • id:词语序号,从1开始

  • word:词语

  • pos:当前词语的词性

  • head:词语的核心词

  • idlabel:依存关系类型

调用接入

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

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

电商领域标签

关系类型

描述

例子

依存关系(核心词, 修饰词)

主谓关系

SBV

subject-verb

我送她一束花(我 <— 送)

动宾关系

VOB

直接宾语,verb-object

我送她一束花(送 —> 花)

间宾关系

IOB

间接宾语,indirect-object

我送她一束花(送 —> 她)

前置宾语

FOB

前置宾语,fronting-object

他什么书都读(书 <— 读)

兼语

DBL

double

他请我吃饭(请 —> 我)

定中关系

ATT

attribute

红苹果(红 <— 苹果)

状中结构

ADV

adverbial

非常美丽(非常 <— 美丽)

动补结构

动补结构

complement

做完了作业(做 —> 完)

并列关系

COO

coordinate

大山和大海(大山 —> 大海)

介宾关系

POB

preposition-object

在贸易区内(在 —> 内)

左附加关系

LAD

left adjunct

大山和大海(和 <— 大海)

右附加关系

RAD

right adjunct

孩子们(孩子 —> 们)

独立结构

IS

independent structure

两个单句在结构上彼此独立

标点

WP

punctuation

核心关系

HED

head

指整个句子的核心

错误码

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

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)
文档反馈