Dependency parsing (Premium Edition - General - Stanford tags)
Usage notes
This service is a feature of the Premium Edition. Activate the Premium Edition to call this service for free. You can confirm your activation status here: https://common-buy.aliyun.com/?commodityCode=nlp_alinlpAdvancedPost_public_cn
Supported language: Chinese
Supported domain: General
Feature description: Analyzes dependencies between words in a sentence to identify syntactic structures, such as subject-verb, verb-object, and modifier-head relationships. The service represents the sentence's syntactic structure as a tree, including patterns such as subject-verb-object and adverbial-verb-complement.
Request parameters
Name | Location | Type | Required | Sample value |
Action | String | Yes | GetDpChGeneralStanford | A required parameter. Set the value to GetDpChGeneralStanford. |
ServiceCode | String | Yes | alinlp | A static field. Only alinlp is supported. |
Text | String | Yes | I love China | The text. The maximum length is 120 characters. |
Response data
Name | Type | Example Value | Description |
RequestId | String | FA53D08F-37D1-4D81-BEE7-41F24E825F60 | The unique ID of the request. Use this ID to troubleshoot issues. |
Data | String | |
|
API access
To access the API using code, see Quick Start.
To try the service online, see Online trial.
Stanford dependency annotation specifications
Relation type | Description | Example | Dependency relation (headword, modifier) |
root | sentence root | I love Mom | root(root, love) |
nn | noun compound modifier | service center | nn(center, service) |
punct | punctuation | Customs statistics show, | punct(show, ,) |
nsubj | nominal subject | Plum blossoms bloom | nsubj(bloom, plum blossom) |
conj | conjunct (links two conjuncts in a coordinate relationship) | equipment and raw materials | conj(raw materials, equipment) |
dobj | direct object | Pudong issued seventy-one documents | dobj(issued, documents) |
advmod | adverbial modifier | Adverbial modifier | advmod(send, first) |
prep | prepositional modifier | gradually improve in practice | prep(improve, in) |
nummod | number modifier | seventy-one documents | nummod(measure word, seventy-one) |
amod | adjectival modifier | cross-century project | amod(project, cross-century) |
pobj | prepositional object | according to relevant regulations | pobj(according to, regulations) |
rcmod | relative clause modifier | a situation never encountered before | rcmod(situation, encountered) |
cpm | Complementizer (complement) | the economic activities of developing Pudong | cpm(developing, de) |
assm | associative marker | the enterprise's products | assm(enterprise, de) |
assmod | associative modifier | the enterprise's products | assmod(products, enterprise) |
cc | coordinating conjunction | equipment and raw materials | cc(raw materials, and) |
clf | classifier conjunction | seventy-one documents | clf(seventy-one, measure word) |
ccomp | Clausal complement | The bank decided to first obtain a credit rating | ccomp(decided, obtain) |
det | determiner | these economic activities | det(activities, these) |
lobj | localizer object | in recent years | lobj(lai, recent years) |
range | dative object that is a quantifier phrase | The transaction of drugs exceeded 100 million CNY | range(transaction, CNY) |
asp | aspect marker | played a role | asp (played, le) |
tmod | temporal modifier | never encountered before | tmod(encountered, before) |
plmod | localizer modifier of a preposition | on this fervent land | plmod(on, shang) |
attr | attributive | The trade volume is 20 billion USD | attr(is, USD) |
mmod | Modal verb modifiers | Interests can be guaranteed | mmod (obtain, can) |
loc | Localizer position | accounts for more than 90% | loc(at, on) |
top | topic | Construction is the main activity | top(is, Construction) |
pccomp | clausal complement of a preposition | According to the introduction from relevant departments | pccomp(According to, introduction) |
etc | etc modifier | fields such as science, technology, culture, and education | etc(culture and education, etc.) |
lccomp | clausal complement of a localizer | A star rising from China's opening up | lccomp (Medium, Open) |
ordmod | Ordinal modifiers | the seventh institution | ordmod(ge, seventh) |
xsubj | Subject of a clause | The bank decided to first obtain a credit rating | xsubj(obtain, bank) |
neg | Modifier: Negative | never encountered before | neg(encountered, not) |
rcomp | resultative complement | Research Succeeded | rcomp (research and success) |
comod | Coordinated-verb compound modifier | promulgate and implement | comod(promulgate, implement) |
vmod | verb modifier | its role in supporting foreign-invested enterprises | vmod(in terms of, supporting) |
prtmod | particles such as suǒ, yǐ, lái, and ér | the achievements made in industrialization | prtmod(made, suo) |
ba | "ba" construction | turn attention to the market | ba (to turn or handle) |
dvpm | manner modifier "de" | effectively prevent loss | dvpm(effective, de) |
dvpmod | a "XP + DEV (de)" phrase that modifies a VP | effectively prevent loss | dvpmod(prevent, effective) |
prnmod | parenthetical modifier | During the Eighth Five-Year Plan period (1990-1995) | prnmod(period, 1995) |
cop | copular | was originally a self-sufficient economy | Yes, it is self-sufficient. |
pass | passive marker | is recognized as a high-tech industry | pass(recognized, bei) |
nsubjpass | nominal passive subject | Nickel is called the vitamin of modern industry | nsubjpass(called, Nickel) |
mark | marker, clause modifier | He says that you like 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 | dependency | ||
relcl | dependency | ||
nfincl | dependency |
Error codes
If an error occurs during a call, refer to the following table for the error description, cause, and solution.
HttpCode | Error code | Error message | Description |
400 | UserStatusInvalid | The user status is invalid. | The user status is invalid. Check whether your account has an overdue payment or an unpaid bill. |
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 | The NLP API (Basic Edition) service is not activated. Click the link to confirm the activation status: 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 | The NLP API (Premium Edition) service is not activated. Click the link to confirm the activation status: 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 | The NLP API (Industry Application Edition) service is not activated. Click the link to confirm the activation status: https://common-buy.aliyun.com/?commodityCode=nlp_alinlpIndustryPost_public_cn#/buy |
401 | InvalidParameter | The parameter is invalid. | The parameter is invalid. Check the request parameters. |
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 | Your account does not have the permission to operate on the specified resource. Click the URL for help information: https://help.aliyun.com/document_detail/177209.html |
405 | TextLimitExceeded | The maximum length of the text is exceeded. | The text length exceeds the limit. |
406 | TextCodingError | An encoding error occurred to the input text. | The encoding of the input text is invalid. |
410 | FrameworkError | Framework internal server error. | Framework error. |
411 | FrameworkApiError | Framework API error. | Framework API error. |
412 | FrameworkFormatError | Framework request format error. | The format of the framework request is invalid. |
413 | FrameworkReturnError | Framework return type format error. | The format of the framework response is invalid. |
429 | Throttling.User | Flow control has been triggered. | The maximum number of queries per second (QPS) is exceeded. Click the URL for help information: 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. | A server error occurred while processing your request. Try again later or contact customer support. |