Part-of-speech tagging (E-commerce)

更新时间:
复制 MD 格式

Part-of-speech tagging for the E-commerce realm (Premium Edition).

Part-of-speech tagging (Premium Edition - E-commerce realm)

Prerequisites

  • This service is a feature of the Premium Edition. You must activate the Premium Edition to call this service for free. You can confirm your activation status here: Confirm activation

  • Supported language: Chinese

  • Supported realm: E-commerce

  • Description: This feature assigns a part of speech to each word in a natural language text.

Request parameters

Name

Type

Required

Example

Description

Action

String

Yes

GetPosChEcom

A required parameter. Set the value to GetPosChEcom.

ServiceCode

String

Yes

alinlp

A static field. The value must be alinlp.

Text

String

Yes

Input text

The text to analyze. The maximum length is 1024 characters.

TokenizerId

String

No

MAINSE

The tokenizer type. The default value is MAINSE.

OutType

String

No

0

0: coarse granularity, 1: medium granularity (default), 2: fine granularity.

Returned Data

Name

Type

Example

Description

Data

String

{
  "result": [
    {
      "pos": "VV",
      "word": "please"
    },
    {
      "pos": "VV",
      "word": "enter"
    },
    {
      "pos": "NN",
      "word": "text"
    }
  ],
  "success": true
}

pos: The part of speech.

word: The word.

RequestId

String

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

The unique ID of the request. Use this ID to troubleshoot issues.

Call the service

  1. To learn how to call the service using code, see Getting started.

  2. To quickly try the service online, see Online trial.

Part-of-speech list

Parameter name

Parameter value

VA

Predicative adjective

VC

Copula, such as 'is'.

VE

Existential verb, such as 'have', 'not have', and 'none'.

VV

Other verb

NR

Proper noun

NT

Temporal noun

NN

Other terms

LC

Positional words

PN

Pronoun

DT

Determiner

CD

Cardinal number

OD

Ordinal number

M

Measure word

AD

Adverb

P

Preposition

CC

Coordinating conjunction

CS

Subordinating conjunction

DEC

The particle 'de' used as a complementizer or nominalizer, such as in 'chi de' (things to eat).

DEG

The particle 'de' used as an associative or possessive marker, such as in 'dandan de huaxiang' (light floral scent).

DER

The particle 'de', such as in 'chuan de haokan' (dresses beautifully).

DEV

The particle 'de', such as in 'buduan de tixing' (constantly reminding).

AS

Aspect particle, including only 'zhe', 'le', 'guo', and 'de'.

SP

Sentence-final particle, such as 'le', 'ne', 'ba', 'a', 'ya', and 'ma'.

ETC

The words 'deng' and 'dengdeng', which mean 'etc.'.

MSP

Other particle, such as 'suo', 'yi', 'lai', and 'er'.

IJ

Interjection, such as 'a'.

ON

Onomatopoeia, such as 'hualala' and 'gezhi'.

LB

Long 'bei' construction, such as in 'ta bei wo xun le yi dun' (He was scolded by me).

SB

Short 'bei' construction, such as in 'ta bei xun le yi dun' (He was scolded).

BA

'Ba' construction, such as in 'ta ba ni pian le' (He tricked you).

JJ

Other noun modifier

FW

Foreign word

PU

Punctuation

Error codes

If an error occurs when you call the service, refer to the following table for its description, cause, and solution.

HttpCode

Error code

Error message

Description

400

UserStatusInvalid

The user status is invalid.

The user status is invalid. Check if 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 permissions 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 input text has an encoding error.

410

FrameworkError

Framework internal server error.

Framework error.

411

FrameworkApiError

Framework API error.

Framework API error.

412

FrameworkFormatError

Framework request format error.

Framework request format error.

413

FrameworkReturnError

Framework return type format error.

Framework return format error.

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.