文档

依存句法分析(通用-Stanford标签)

更新时间:

依存句法分析(高级版-通用-Stanford标签)

调用须知

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

  • 支持语言:中文

  • 支持领域:通用领域

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

请求参数

名称

位置

类型

是否必选

示例值

Action

String

GetDpChGeneralStanford

系统规定参数,取值:GetDpChGeneralStanford

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. 在线快速试用请参考:在线试用

Stanford依存标注规范

关系类型

描述

例子

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

root

sentence root(根节点)

我爱妈妈

root(root, 爱)

nn

noun compound modifier(复合名词修饰)

服务中心

nn(中心, 服务)

punct

punctuation(标点)

海关统计表明 ,

punct(表明, ,)

nsubj

nominal subject(主谓关系)

梅花盛开

nsubj(盛开, 梅花)

conj

conjunct (links two conjuncts) 并列关系

设备和原材料

conj(原材料, 设备)

dobj

direct object(直接宾语)

浦东颁布了七十一件文件

dobj(颁布, 文件)

advmod

adverbial modifier(副词修饰)

adverbial modifier(副词修饰)

advmod(送上, 先)

prep

prepositional modifier(介词修饰)

在实践中逐步完善

prep(完善, 在)

nummod

number modifier(数词修饰)

七十一件文件

nummod(件, 七十一)

amod

adjectival modifier(形容词修饰)

跨世纪工程

amod(工程, 跨世纪)

pobj

prepositional object(介宾关系)

根据有关规定

pobj(根据, 规定)

rcmod

relative clause modifier(关系子句修饰符)

不曾遇到过的情况

rcmod(情况, 遇到)

cpm

complementizer(补语)

开发浦东的经济活动

cpm(开发, 的)

assm

associative marker(助词)

企业的商品

assm(企业, 的)

assmod

associative modifier

企业的产品

assmod(商品, 企业)

cc

coordinating conjunction(并列连接词)

设备和原材料

cc(原材料, 和)

clf

classifier conjunction

七十一件文件

clf(七十一, 件)

ccomp

clausal complement 子句补足语

银行决定先取得信用评级

ccomp(决定, 取得)

det

determiner 限定词

这些经济活动

det(活动, 这些)

lobj

localizer object

近年来

lobj(来, 近年)

range

dative object that is a quantifier phrase

成交药品一亿多元

range(成交, 元)

asp

aspect marker(助词)

发挥了作用

asp (发挥, 了)

tmod

temporal modifier(时间修饰语)

以前不曾遇到过

tmod(遇到, 以前)

plmod

localizer modifier of a preposition(介词的地点修饰语)

在这片热土上

plmod(在, 上)

attr

attributive(定语)

贸易额为二百亿美元

attr(为, 美元)

mmod

modal verb modifier 情态动词修饰语

利益能得到保障

mmod(得到, 能)

loc

localizer 位置

占九层以上

loc(在, 上)

top

topic

建筑是主要活动

top(是, 建筑)

pccomp

clausal complement of a preposition

据有关部门介绍

pccomp(据, 介绍)

etc

etc modifier 等

科技 、文教等领域

etc(文教, 等)

lccomp

clausal complement of a localizer

中国对外开放中升起的明星

lccomp(中, 开放)

ordmod

ordinal number modifier 序数词

第七个机构

ordmod(个, 第七)

xsubj

controlling subject 子句主语

银行决定先取得信用评级

xsubj(取得, 银行)

neg

negative modifier 否定

以前不曾遇到过

neg(遇到, 不)

rcomp

resultative complement

研究成功

rcomp(研究, 成功)

comod

coordinated verb compound modifier 动词并列

颁布实行

comod(颁布, 实行)

vmod

verb modifier 动词修饰

其在支持外商企业方面的作用

vmod(方面, 支持)

prtmod

particles such as 所, 以, 来, 而

在产业化所取得的成就

prtmod(取得, 所)

ba

“ba” construction 把字句

把注意力转向市场

ba(转向, 把)

dvpm

manner DE(地)modifier 地

有效地防止流失

dvpm(有效, 地)

dvpmod

a “XP + DEV(地)” phrase that modifies VP

有效地防止流失

dvpmod(防止, 有效)

prnmod

parenthetical modifier

八五期间(1990-1995)

prnmod(期间, 1995)

cop

copular

原是自给自足的经济

cop(自给自足, 是)

pass

passive marker 被动标识符

被认定为高技术产业

pass(认定, 被)

nsubjpass

nominal passive subject 被动语态的主谓

镍被称作现代工业的维生素

nsubjpass(称作, 镍)

mark

marker,子句修饰符

He says that you like to football

mark(football,that)

auxpass

passive auxiliary 被动词

Jack has been infected

auxpass(infected, been)

dep

dependent依赖关系

Then, as if to show that he could, . . .

dep(show, if)

case

依赖关系

relcl

依赖关系

nfincl

依赖关系

错误码

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

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