Text summarization (E-commerce)
Text summarization (Premium Edition - E-commerce domain)
Prerequisites
This service is a feature of the Premium Edition. Activate the Premium Edition to use this service for free. To confirm the activation status, click Confirm activation.
Supported language: Chinese
Supported domain: E-commerce
Description: Extracts key information from input text to generate a short summary.
Request parameters
Name | Type | Required | Example value: | Description |
Action | String | Yes | GetSummaryChEcom | A required parameter. The value must be GetSummaryChEcom. |
ServiceCode | String | Yes | alinlp | A static field. The only supported value is alinlp. |
Text | String | Yes | Please enter a long e-commerce text. | The e-commerce text. The recommended length is 100 to 300 characters. The text must be 60 to 800 characters long. |
Returned data
Name | Type | Example | Description |
RequestId | String | FA53D08F-37D1-4D81-BEE7-41F24E825F60 | The unique ID of the request. Use this ID for troubleshooting. |
Data | String | | result: The text summarization result. |
API access
To access the API using code, see Quick Start.
To try the service online, see Online trial.
Error codes
If an error occurs during a call, refer to the following table for the 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. | A 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 is not authorized to operate on the specified resource. Click the URL for help: 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 response format error. |
429 | Throttling.User | Flow control has been triggered. | The number of queries per second (QPS) exceeds the limit. Click the URL for help: 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 your request was being processed. Try again later or contact customer support. |