Product review analysis service for the E-commerce realm

更新时间:
复制 MD 格式

The product review analysis service parses product reviews in the E-commerce realm.

This document describes how to use the product review analysis service for the E-commerce realm. If the currently supported realms and industries do not meet your needs, you can join the NLP Self-learning Platform Q&A DingTalk group 2 (Group ID: 44619071) to discuss collaboration.

Note

This service is provided by the NLP Self-learning Platform. You can use it by directly calling the API.

Service activation and resource plan purchase

Before using the service, confirm that it is activated. After activation, purchase a resource plan.

Service invocation and debugging

For more information about model invocation, see Model invocation.

For software development kit (SDK) sample code, see SDK examples.

Debug

You can run this API operation directly in the OpenAPI Developer Portal to avoid calculating a signature. After the operation runs successfully, the OpenAPI Developer Portal automatically generates SDK sample code.

Configure access credentials (AKSK) using environment variables

  1. Notes:

    1. An AccessKey for an Alibaba Cloud account has all API access permissions. This poses a high security risk. We recommend that you create and use a Resource Access Management (RAM) user for API access or daily operations and maintenance (O&M). To create a RAM user, log on to the RAM console.

    2. Do not hardcode your AccessKey ID and AccessKey secret in your code. Doing so can lead to key leakage. Instead, configure environment variables to store and access your AccessKey ID and AccessKey secret.

  2. Configuration for Linux and macOS systems

    export NLP_AK_ENV=<access_key_id>
    export NLP_SK_ENV=<access_key_secret>

    Replace <access_key_id> with your AccessKey ID and <access_key_secret> with your AccessKey secret. For more information about how to obtain an AccessKey ID and an AccessKey secret, see Step 2: Obtain an AccessKey for your account.

  3. Configuration for Windows systems

    1. Create a file for the environment variables. Add the environment variables NLP_AK_ENV and NLP_SK_ENV and set their values to your AccessKey ID and AccessKey secret.

    2. Restart the Windows system.

To call the product review analysis service for the E-commerce realm, set ServiceName to ReviewAnalysis.

Java code example

/**
 * An AccessKey of an Alibaba Cloud account has all API access permissions. This poses a high security threat. 
 * Create and use a RAM user for API access or daily O&M. Log on to the RAM console to create a RAM user.
 * This example shows how to save the AccessKey ID and AccessKey secret to environment variables. You can also save them to a configuration file as needed.
 * Do not save your AccessKey ID and AccessKey secret in your code. This can lead to key leakage.
 */
String accessKeyId = System.getenv("NLP_AK_ENV");
String accessKeySecret = System.getenv("NLP_SK_ENV");
DefaultProfile defaultProfile = DefaultProfile.getProfile("cn-hangzhou",accessKeyId,accessKeySecret);
IAcsClient client = new DefaultAcsClient(defaultProfile);

Map<String, Object> input = new HashMap();
input.put("content","I received the clothes I bought for my mom. The fabric is cool and soft, the texture is gentle, the workmanship is meticulous, and the style is fashionable and elegant.");
input.put("domain","clothing");
input.put("entity",true);
Map<String, Object> map = new HashMap<>();
map.put("input", input);

RunPreTrainServiceRequest request = new RunPreTrainServiceRequest();
request.setServiceName("ReviewAnalysis");
request.setPredictContent(JSON.toJSONString(map));
RunPreTrainServiceResponse response = client.getAcsResponse(request);
System.out.println(response.getPredictResult());

Python code example

# Install dependencies
pip install aliyun-python-sdk-core
pip install aliyun-python-sdk-nlp-automl
# -*- coding: utf8 -*-
import json
import os

from aliyunsdkcore.client import AcsClient
from aliyunsdkcore.acs_exception.exceptions import ClientException
from aliyunsdkcore.acs_exception.exceptions import ServerException
from aliyunsdknlp_automl.request.v20191111 import RunPreTrainServiceRequest
/**
 * An AccessKey of an Alibaba Cloud account has all API access permissions. This poses a high security threat. 
 * Create and use a RAM user for API access or daily O&M. Log on to the RAM console to create a RAM user.
 * This example shows how to save the AccessKey ID and AccessKey secret to environment variables. You can also save them to a configuration file as needed.
 * Do not save your AccessKey ID and AccessKey secret in your code. This can lead to key leakage.
 */
access_key_id = os.environ['NLP_AK_ENV']
access_key_secret = os.environ['NLP_SK_ENV']

# Initialize AcsClient instance
client = AcsClient(
  access_key_id,
  access_key_secret,
  "cn-hangzhou"
);

content = 'I received the clothes I bought for my mom. The fabric is cool and soft, the texture is gentle, the workmanship is meticulous, and the style is fashionable and elegant.'
domain = 'clothing'
input_params = {
    "input": {
        "content": content,
        "domain": domain,
        "entity": True
    }
}

# Initialize a request and set parameters
request = RunPreTrainServiceRequest.RunPreTrainServiceRequest()
request.set_ServiceName('ReviewAnalysis')
request.set_PredictContent(json.dumps(input_params))

# Print response
response = client.do_action_with_exception(request)
resp_obj = json.loads(response)
predict_result = json.loads(resp_obj['PredictResult'])
print(json.dumps(predict_result['data']))

PredictContent example

The PredictContent parameter is a JSON string. The following example shows the content of the JSON string.

{
  "input": {
    "content": "I received the clothes I bought for my mom. The fabric is cool and soft, the texture is gentle, the workmanship is meticulous, and the style is fashionable and elegant. ",
    "domain": "clothing",
    "entity": true
  }
}

Input parameters

Parameter

Description

content

The text to predict. The maximum length is 500 characters.

domain

The supported product category. For more information, see the supported categories table in the next section.

entity

If the value is true, the result includes the extracted property and sentiment terms. Otherwise, it does not.

Supported product categories

Note

The category codes have been adjusted. The old codes are still compatible.

Updated on 2021-10-19: Added six industries: Car accessories, Gifts, Computer, Communication, and Consumer Electronics (3C) digital accessories, Hardware, Pets, and Plants. Expanded the property categories for six industries: Cellphone (37), Electrical appliances - Communication (24), Glasses (31), Office supplies (27), Watch (27), and Electrical appliances - Sweeping robot (2).

Updated on 2021-05-19: Added seven industries: Baby care, Book, Clothing - Clothing accessories, Outdoors, Sports, Stationery, and Laundry care. Expanded the property categories for 20 industries: Food - Fresh food (25), Food - Coffee, cereal, and instant drinks (24), Food - Staple food (28), Food - Health food (26), Food - Nourishment (26), Food - Wine (24), Food - Snacks (26), Clothing - General (1), Clothing - Fashion accessories (20), Clothing - Underwear (14), Clothing - Women's clothing (12), Clothing - Shoes (18), Sports - Small ball (24), Sports - Big ball (23), Sports - Cycling accessories (23), Sports - Bicycle (33), Bags (1), Baby care - Diaper (30), Beauty & makeup (11), and Wash care - Laundry (8).

Updated on 2021-07-11: Added nine industries: Cleaning tools, Health care, Home accessories, Household goods, Home textiles, Maternal supplies, Storage, Tableware, and Toy. Expanded the property categories for six industries: Sports - Ball accessories (23), Home decoration - Beddings (21), Home decoration - Decorative lighting (30), Home decoration - Decorative materials (31), Home decoration - Furniture (28), and Milk powder (36).

Updated on 2021-08-05: Added three industries: Audio-visual appliances, Kitchen appliances, and Kitchenware. Expanded the property categories for seven industries: Electrical appliances - General (33), Electrical appliances - Electric blanket (25), Electrical appliances - Electric fan (29), Electrical appliances - Refrigeration (32), Electrical appliances - Television (28), Electrical appliances - Washing machine (35), and Electrical appliances - Water heater (29).

Ordinal number

Category

Category code

Property category

E-commerce industry reference

1

Food - Meat & Seafood

fresh_food

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,weight,color,taste,details,freshness,cleanliness,size,moisture,saltiness,ripeness,shelf life,food poisoning,sweetness,feel,adverse reaction,size,origin,quantity,convenience,workmanship,other,feature,thickness,oil content,flavor,brand,appearance design,odor,ingredient,description match,consistency,type,infusion durability,meat quality,color fastness,hardness,suitability,eating effect,stickiness

Aquatic products, meat/Fresh vegetables and fruits/Cooked food

2

Food - Coffee, cereal, and instant drinks

coffe

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,weight,odor,eating effect,color,taste,size,shelf life,brewing effect,convenience,adverse reaction,size,origin,quantity,convenience,workmanship,other,feature,flavor,brand,appearance design,cleanliness,ingredient,ripeness,feel,description match,freshness,moisture,consistency,type,powder texture,color fastness,suitability,satiety

Coffee/Cereal/Instant drinks

3

Food - Staple food

staple_food

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,weight,experience,color,taste,freshness,cleanliness,size,moisture,feel,saltiness,ripeness,shelf life,food poisoning,sweetness,details,adverse reaction,size,origin,quantity,convenience,workmanship,other,feature,thickness,oil content,flavor,brand,appearance design,odor,ingredient,description match,rehydration property,consistency,cooking effect,cooking time,type,meat quality,color fastness,hardness,suitability,eating effect,satiety,stickiness

Grains, oils, and staples/Dried goods/Condiments

4

Food - Health food

health_food

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,weight,odor,eating effect,taste,shelf life,brewing effect,convenience,adverse reaction,size,origin,quantity,convenience,workmanship,other,feature,flavor,brand,appearance design,practicality,cleanliness,ingredient,ripeness,feel,description match,freshness,moisture,consistency,type,powder texture,color fastness,suitability,color,satiety

Health food/Dietary supplements

5

Food - Nourishment

nourishment

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,odor,weight,infusion durability,color,taste,freshness,powder texture,cleanliness,size,shelf life,rehydration property,adverse reaction,size,origin,quantity,convenience,workmanship,other,feature,thickness,oil content,flavor,brand,appearance design,ingredient,ripeness,feel,description match,moisture,consistency,type,collagen,color fastness,hardness,suitability,eating effect,stickiness

Traditional nourishing products

6

Food - Wine

wine

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,odor,intoxication effect,vintage,appearance,taste,color,ingredient,volume,alcohol content,adverse reaction,size,origin,quantity,convenience,shelf life,other,feature,flavor,brand,appearance design,cleanliness,ingredient,ripeness,feel,description match,freshness,type,color fastness,suitability,wine quality,decanting time,weight,eating effect

Wine

7

Food - Snacks

snacks

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,spiciness,flavor,odor,weight,taste,ingredient,shelf life,meat quality,sweetness,adverse reaction,size,origin,quantity,convenience,workmanship,other,feature,thickness,oil content,brand,appearance design,cleanliness,ripeness,feel,description match,freshness,moisture,type,color fastness,hardness,suitability,color,eating effect,satiety,stickiness

Snacks/Nuts/Specialty foods

8

Clothing - General

clothing

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,practicality,feel,thickness,fill and content,elasticity,warmth retention,color,accessories,brand,odor,other,fit,workmanship,feature,style,fabric/material,breathability,description match,color fastness,size,wearing effect,comfort,suitability,convenience,appearance design

Men's wear, Children's wear/Baby wear/Family wear, Sportswear/Casual wear

9

Clothing - Fashion accessories

fashion

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,feature,odor,appearance,color,style,size,wearing effect,quantity,usage effect,convenience,workmanship,other,brand,appearance design,practicality,capacity,elasticity,feel,description match,material,comfort,luster,color fastness,certificate,suitability,accessories,weight

Accessories/Fashion jewelry/Fashion accessories

10

Clothing - Underwear

underwear

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,fabric/material,workmanship,shrinkage,odor,durability,color,style,warmth retention,size,gathering effect,comfort,color fastness,thickness,feel,elasticity,wearing effect,convenience,other,feature,brand,appearance design,practicality,description match,sponge pad,fit,suitability,breathability,accessories,underwire

Women's underwear/Men's underwear/Loungewear

11

Clothing - Women's clothing

women_clothing

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,fill and content,color,style,size,pilling,color fastness,shrinkage,warmth retention,holes,fabric,elasticity,breathability,workmanship,pattern,thickness,color difference,odor,wearing effect,symmetry,loose threads,feel,description match,comfort,suitability,feature,other,accessories,fit,convenience,practicality,brand,appearance design,fabric/material

Women's clothing/Boutique women's clothing

12

Clothing - Shoes

shoes

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,feature,odor,material,wearing effect,appearance,color,style,size,color fastness,convenience,warmth retention,other,thickness,brand,appearance design,practicality,elasticity,feel,description match,fit,wearing effect,comfort,suitability,breathability,accessories,weight,sole/heel

Women's shoes, Fashion men's shoes, Sports shoes, Children's shoes/Baby shoes/Family shoes

13

Clothing - Clothing accessories

clothing_accessories

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,odor,fit,fabric/material,brand,wearing effect,color,other,color fastness,elasticity,warmth retention,description match,thickness,sun protection effect,usage effect,feature,convenience,accessories,appearance design,suitability,fill and content,comfort,weight,practicality,breathability,luster,workmanship,sunshade effect,size,feel,wearing effect

Clothing accessories/Belts/Hats/Scarves

14

Sports

sports

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,quantity,odor,fit,fabric/material,sound,brand,water resistance,stickiness,color,other,color fastness,elasticity,warmth retention,description match,thickness,usage effect,feature,convenience,accessories,appearance design,ingredient,suitability,durability,battery/battery life,installation,security,comfort,weight,system performance,display/print effect,practicality,breathability,workmanship,size,feel,quick-dry effect,wearing effect

Sports/Yoga/Fitness/Fan merchandise

15

Sports - Small ball

little_ball

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,odor,weight,durability,material,appearance,color,flight stability,size,roundness,hardness,feel,elasticity,quantity,usage effect,convenience,other,feature,thickness,brand,sound,appearance design,security,installation,practicality,ball control,description match,display/print effect,ball feel,stickiness,system performance,comfort,color fastness,suitability,accessories,anti-slip effect,fabric/material

Sports/Yoga/Fitness/Fan merchandise

16

Sports - Big ball

big_ball

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,ball control,workmanship,odor,weight,durability,material,appearance,color,air leakage,accessories,inflation,size,hardness,elasticity,feel,quantity,usage effect,convenience,other,feature,thickness,brand,sound,appearance design,security,installation,practicality,description match,display/print effect,ball feel,stickiness,system performance,comfort,color fastness,suitability,water resistance,anti-slip effect,fabric/material

Sports/Yoga/Fitness/Fan merchandise

17

Sports - Cycling accessories

cycling_accessories

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,breathability,workmanship,feature,odor,material,color,style,water resistance,warmth retention,quick-dry effect,size,comfort,color fastness,thickness,feel,elasticity,wearing effect,quantity,usage effect,convenience,other,brand,sound,appearance design,security,installation,practicality,capacity,description match,display/print effect,fit,sturdiness,stickiness,system performance,durability,suitability,accessories,weight,fabric/material

Bicycle/Cycling gear/Parts

18

Sports - Ball accessories

ball_accessories

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,fit,weight,odor,anti-slip effect,sound,material,appearance,color,water resistance,absorbency,stickiness,size,magnetic force,installation,cleaning effect,usage effect/ball feel effect,hardness,elasticity,feel,quantity,usage effect,convenience,other,feature,thickness,brand,appearance design,security,practicality,ball control,description match,display/print effect,ball feel,stickiness,system performance,durability,comfort,color fastness,suitability,accessories,fabric/material,flight stability

Sports/Yoga/Fitness/Fan merchandise

19

Sports - Bicycle

bicycle

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,light,color difference,feature,workmanship,weight,material,appearance,color,size,design,security,installation,riding experience,sound,feel,wearing effect,quantity,usage effect,convenience,warmth retention,other,shock absorption effect,brake,power,thickness,gear shifting effect,brand,appearance design,practicality,odor,elasticity,load-bearing capacity,description match,display/print effect,fit,sturdiness,stability,stickiness,system performance,durability,comfort,color fastness,wheels,suitability,breathability,accessories,water resistance,fabric/material

Bicycle

20

Home decoration - Decoration light

decoration_light

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,feature,energy consumption,material,appearance,usage effect,color,accessories,brightness,volume,installation,quantity,convenience,illumination range,other,power,thickness,brand,sound,appearance design,security,installation technician,practicality,size,odor,feel,description match,softness,lighting effect,sturdiness,battery/battery life,stickiness,system performance,durability,comfort,color fastness,decorative effect,hardness,suitability,weight,fabric/material

Home decoration light source

21

Home decoration - Decoration materials

decoration_materials

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,feature,heating effect,weight,odor,seal,material,water output,energy consumption,usage effect,style,flushing power,size,design,security,brightness,installation,sound,feel,quantity,convenience,other,thickness,stain removal/cleaning ability,brand,appearance design,installation technician,practicality,capacity,capacity/space,elasticity,load-bearing capacity,description match,display/print effect,cleaning difficulty,sturdiness,space,three-dimensional effect,stickiness,system performance,durability,comfort,color fastness,decorative effect,hardness,suitability,accessories,fabric/material,color,wind force/speed

Home decoration main materials

22

Home decoration - Beddings

beddings

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,feature,shrinkage,weight,odor,pattern,material,color,style,warmth retention,size,comfort,color fastness,thickness,feel,hardness,quantity,usage effect,convenience,other,absorbency,brand,fill and content,appearance design,security,installation,practicality,elasticity,description match,durability,fluffiness,wrinkles,pilling,suitability,breathability,accessories,fabric/material

Beddings

23

Home decoration - Furniture

furniture

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,color difference,workmanship,odor,material,appearance,color,style,feel,security,comfort,heaviness,convenience,sound,hardness,quantity,usage effect,convenience,other,feature,thickness,brand,appearance design,installation,installation technician,practicality,capacity,capacity/space,size,elasticity,load-bearing capacity,description match,cleaning difficulty,sturdiness,space,stickiness,durability,color fastness,suitability,breathability,accessories,weight,fabric/material

Residential furniture

24

Office supplies

todo

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,feature,weight,operability,space,odor,material,appearance,color,display/print effect,system performance,volume,installation,speed,sound,brightness,quantity,usage effect,convenience,other,resolution,thickness,brand,copying effect,appearance design,security,practicality,capacity/space,size,feel,printing speed,projection effect,description match,definition,sturdiness,shredding effect,durability,comfort,color fastness,suitability,accessories,fabric/material

Office equipment/Consumables/Related services

25

The mobile phone industry

cellphone

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,feature,photo effect,battery/battery life,memory,appearance,usage effect,color,screen,accessories,system performance,sound,feel,brightness,quantity,convenience,signal,workmanship,pixel,charging effect,charging speed,other,resolution,thickness,overheating,brand,appearance design,security,installation,practicality,size,odor,fingerprint unlock,buttons,description match,heat dissipation,display effect,definition,sensitivity,sturdiness,battery/battery life,durability,pre-installed software,comfort,color fastness,running speed,suitability,call quality,weight,fabric/material

Cellphone

26

Bags

bags

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,material,size,wheels,odor,description match,brand,sturdiness,seal,workmanship,accessories,zipper,color,capacity,color difference,feature,other,convenience,feel,usage effect,style,practicality,weight,sound,appearance/design,suitability,color fastness,appearance design

Luggage/Bestselling women's bags/Men's bags

27

Watch industry

watch

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,odor,operability,material,appearance,color,water resistance,calibration,wearing effect,quantity,usage effect,convenience,other,feature,thickness,brand,sound,appearance design,security,installation,practicality,size,feel,description match,display/print effect,sturdiness,stickiness,durability,comfort,color fastness,timekeeping accuracy,hardness,suitability,accessories,weight,fabric/material

Watch

28

Glasses

glasses

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,material,color,style,accessories,size,design,wearing effect,definition,quantity,usage effect,convenience,polarization effect,other,feature,thickness,color-changing effect,brand,sound,appearance design,security,installation,practicality,capacity/space,prescription strength,odor,feel,description match,sturdiness,stickiness,durability,comfort,color fastness,hardness,suitability,sunshade effect,weight,blue light blocking effect,radiation protection effect,fabric/material

Glasses

29

Baby care

baby_care

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,quantity,odor,fabric/material,sound,brand,stickiness,color,other,color fastness,elasticity,description match,thickness,absorbency,usage effect,feature,convenience,shelf life,accessories,appearance design,ingredient,hydrating and moisturizing effect,suitability,durability,sturdiness,installation,security,comfort,weight,capacity,hardness,practicality,breathability,workmanship,size,feel,wearing effect

Diapers/Wash care/Feeding/Strollers and beds, Baby bath and skincare, Cups/Tableware/Grinders/Accessories

30

Baby care - Diaper

diaper

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,absorbency,breathability,softness,material,appearance,usage effect,fit,wearing effect,quantity,convenience,shelf life,workmanship,other,feature,thickness,brand,sound,appearance design,security,practicality,capacity,size,odor,elasticity,feel,description match,sturdiness,stickiness,durability,comfort,color fastness,hardness,suitability,accessories,weight,fabric/material,color

Diapers

31

Milk powder

milk_powder

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,odor,color,taste,convenience,shelf life,texture,solubility,adverse reaction,origin,quantity,usage effect,convenience,workmanship,other,brewing effect,feature,thickness,absorbency,flavor,brand,sound,appearance design,security,practicality,capacity,size,cleanliness,ingredient,feel,description match,freshness,consistency,type,stickiness,durability,color fastness,nutritional value,suitability,accessories,weight,fabric/material,eating effect,satiety

Milk powder/Baby food/Supplements/Snacks

32

Beauty & makeup

beauty

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,whitening effect,breast enhancement effect,usage effect,color,anti-aging effect,ingredient,pore minimizing effect,concealing effect,acne and scar removal effect,protection effect,hydrating and moisturizing effect,seal,sun protection effect,slimming effect,firming effect,texture,spot fading effect,blackhead removal effect,odor,makeup finish,oil control effect,cleaning effect,shelf life,size,workmanship,suitability,appearance design,other,color fastness,description match,convenience,brand,feel,quantity

Skincare/Body care/Essential oils, Makeup/Perfume/Beauty tools

33

Electrical appliances - General

domestic_appliances

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,feature,portability,weight,operability,appearance,usage effect,color,volume,installation,convenience,sound,details,quantity,convenience,other,purification effect,water output,mist output,cooling effect,heating effect,power,humidification effect,thickness,suction power,brand,appearance design,security,practicality,capacity/space,size,odor,feel,description match,cleaning effect,drying effect,ironing effect,sturdiness,battery/battery life,system performance,durability,energy consumption,comfort,color fastness,hardness,suitability,accessories,dehumidification effect,fabric/material,wind force/speed

Home appliances

34

Electrical appliances - Communication

electric_communication

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,feature,battery/battery life,weight,intercom/call quality,operability,signal,appearance,color,volume,transmission distance,sound,portability,brand,other,description match,color fastness,suitability,feel,appearance design,size,odor,fabric/material,convenience,quantity,usage effect,durability,practicality,hardness,thickness,comfort,capacity/space,security,accessories,installation,sturdiness,system performance

Communication appliances

35

Electrical appliances - Television

television

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,volume,workmanship,feature,weight,operability,odor,material,energy consumption,content resources,memory,appearance,color,accessories,design,system performance,display effect,installation,thickness,sound,brightness,quantity,usage effect,convenience,signal,other,power,brand,appearance design,security,installation technician,practicality,capacity/space,size,feel,load-bearing capacity,description match,charges,sturdiness,battery/battery life,durability,comfort,color,color fastness,hardness,network connection effect,suitability,fabric/material

Television

36

Electrical appliances - Water heater

water_heater

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,heating effect,workmanship,weight,operability,insulation/temperature control/heating effect,material,water output,energy consumption,appearance,color,capacity,design,security,volume,installation,sound,quantity,usage effect,convenience,insulation effect,signal,other,power,feature,thickness,brand,appearance design,installation technician,practicality,capacity/space,size,odor,feel,description match,charges,water pressure,sturdiness,system performance,durability,comfort,color fastness,hardness,suitability,accessories,fabric/material

Water heater

37

Electrical appliances - Washing machine

washing_machine

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,spin-dry/drying effect,feature,odor,energy consumption,weight,material,operability,installation,appearance,color,capacity,volume,sound/vibration,washing effect,quantity,usage effect,convenience,signal,workmanship,other,power,power,thickness,brand,sound,appearance design,security,installation technician,practicality,capacity/space,size,feel,description match,charges,drying effect,sturdiness,water consumption,battery/battery life,stability,system performance,durability,spin-dry effect,comfort,color fastness,hardness,network connection effect,suitability,accessories,fabric/material

Washing machine

38

Electrical appliances - Refrigeration

refrigeration

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,workmanship,feature,cooling/fresh-keeping effect,weight,operability,odor,material,energy consumption,door structure,appearance,color,capacity,volume,installation,operating mode,thickness,sound,quantity,usage effect,convenience,fresh-keeping effect,signal,other,cooling effect,heating effect,power,brand,appearance design,security,installation technician,practicality,capacity/space,size,feel,description match,charges,heat dissipation,sturdiness,battery/battery life,system performance,durability,comfort,hardness,network connection effect,suitability,accessories,windproof effect,fabric/material,wind force/speed

Refrigeration equipment, Refrigerators and freezers

39

Electrical appliances - Electric fan

electric_fan

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,wind force/speed,feature,workmanship,weight,operability,experience,appearance,color,volume,installation,sound,details,quantity,usage effect,convenience,other,mist output,cooling effect,power,thickness,brand,appearance design,security,practicality,capacity/space,size,odor,feel,description match,lighting effect,sturdiness,battery/battery life,system performance,durability,energy consumption,comfort,color fastness,hardness,suitability,accessories,fabric/material

Electric fan

40

Electrical appliances - Electric blanket

electric_blanket

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,fabric/material,heating effect,feature,flavor,workmanship,operability,experience,pattern,color,size,security,insulation effect,sound,quantity,usage effect,convenience,other,power,thickness,brand,appearance design,installation,practicality,capacity/space,odor,feel,description match,sturdiness,battery/battery life,system performance,durability,energy consumption,comfort,color fastness,hardness,suitability,accessories,weight

Electric blanket

41

Electrical appliances - Sweeping robot

sweepingrobot

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,appearance,battery/battery life,sound,definition,capacity,cleaning effect,usage effect,feature,workmanship,details,experience,cleanliness,color,volume,weight,material,workmanship,appearance design,battery/battery life

Sweeping robot

42

Book industry

book

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,layout,quantity,odor,fabric/material,sound,brand,stickiness,color,other,color fastness,description match,thickness,usage effect,feature,convenience,accessories,appearance design,suitability,durability,installation,creases,security,comfort,content resources,weight,system performance,display/print effect,practicality,workmanship,size,content quality,feel,instructor service

Books/Magazines/Newspapers

43

Outdoor products

outdoors

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,quantity,odor,fit,fabric/material,sound,brand,rod action,water resistance,feel,stickiness,color,other,color fastness,elasticity,warmth retention,description match,thickness,usage effect,feature,convenience,accessories,appearance design,suitability,durability,sturdiness,battery/battery life,installation,security,comfort,tensile strength,weight,portability,system performance,display/print effect,practicality,breathability,workmanship,size,brightness,quick-dry effect,wearing effect

Outdoor/Mountaineering/Camping/Travel supplies

44

Stationery

stationery

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,layout,quantity,odor,fabric/material,sound,brand,stickiness,color,other,color fastness,elasticity,description match,thickness,smoothness,usage effect,feature,convenience,accessories,appearance design,suitability,durability,installation,creases,security,comfort,content resources,weight,system performance,display/print effect,practicality,workmanship,size,feel,quick-dry effect

Electronic dictionaries/E-readers/Cultural supplies

45

Wash care

washcare

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,quantity,odor,fabric/material,sound,brand,solubility,stickiness,consistency,color,stain removal/cleaning ability,other,color fastness,description match,thickness,absorbency,usage effect,feature,convenience,shelf life,accessories,efficacy,appearance design,oil control effect,ingredient,hydrating and moisturizing effect,suitability,durability,mosquito repellent effect,security,comfort,weight,capacity,lather amount,practicality,cleaning difficulty,whitening effect,workmanship,acne and scar removal effect,breathability,size,anti-itch effect,feel

Cleaning agents/Sanitary napkins/Paper/Aromatherapy

46

Wash care - Laundry

laundry

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,scent/odor,usage effect,other,durability,quantity,stain removal/cleaning ability,brand,convenience,lather amount,consistency,cleaning difficulty,ingredient,appearance,description match,solubility,efficacy,color,shelf life,workmanship,feature,appearance design,security,practicality,capacity,size,odor,feel,cleaning difficulty,stickiness,comfort,color fastness,suitability,accessories,weight,fabric/material

Paper products/Wet wipes, Oral care, Body wash, Hair care

47

Cleaning tools

cleaning_tools

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,durability,size,quantity,water output,sound,capacity,suitability,cleaning difficulty,seal,usage effect,hardness,installation,stain removal/cleaning ability,practicality,convenience,fabric/material,color fastness,absorbency,load-bearing capacity,workmanship,thickness,odor,description match,feature,comfort,brand,weight,appearance design,feel,security,stickiness,light,sturdiness,color,accessories,other,elasticity

Household/Personal cleaning tools

48

Personal Care

health_care

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,durability,size,wearing effect,quantity,calibration,system performance,sound,suitability,usage effect,installation,battery/battery life,eating effect,practicality,convenience,fabric/material,color fastness,heating effect,ingredient,workmanship,thickness,odor,description match,feature,comfort,brand,weight,wind force/speed,appearance design,feel,security,intensity,breathability,power,sturdiness,color,accessories,other,elasticity

Personal care/Health/Massage equipment

49

Home accessories

home_accessories

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,durability,size,quantity,sound,capacity,suitability,hardness,usage effect,three-dimensional effect,installation,display/print effect,brightness,practicality,installation technician,convenience,fabric/material,color fastness,load-bearing capacity,workmanship,thickness,odor,description match,feature,comfort,brand,weight,decorative effect,appearance design,feel,security,stickiness,sturdiness,color,accessories,other,elasticity

Home accessories

50

Home daily

home_daily

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,durability,size,wearing effect,quantity,sound,capacity,suitability,hardness,usage effect,installation,display/print effect,warmth retention,practicality,convenience,fabric/material,color fastness,heating effect,ingredient,mosquito repellent effect,absorbency,sound insulation effect,workmanship,thickness,odor,shelf life,description match,feature,comfort,brand,weight,wind force/speed,appearance design,feel,security,breathability,protection effect,stickiness,sturdiness,color,accessories,other,elasticity

Home daily

51

Home fabric

home_fabric

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,durability,size,wearing effect,wrinkles,quantity,sound,capacity,suitability,hardness,usage effect,installation,fill and content,shrinkage,warmth retention,pilling,practicality,convenience,fabric/material,color fastness,absorbency,workmanship,thickness,odor,light-blocking effect,description match,feature,comfort,brand,anti-slip effect,weight,appearance design,feel,security,breathability,stickiness,color,accessories,other,elasticity

Home fabric

52

Maternal supplies

maternal_supplies

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,durability,size,wearing effect,quantity,makeup finish,sound,capacity,suitability,usage effect,installation,fill and content,gathering effect,battery/battery life,warmth retention,eating effect,practicality,convenience,fabric/material,color fastness,ingredient,absorbency,fit,workmanship,thickness,odor,shelf life,oil control effect,description match,feature,suction power,comfort,brand,taste,weight,appearance design,feel,hydrating and moisturizing effect,flavor,security,breathability,stickiness,color,accessories,other,elasticity

Maternity wear/Maternal supplies/Nutrition

53

Storage

storage

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,durability,size,quantity,sound,capacity,suitability,seal,usage effect,hardness,installation,warmth retention,practicality,convenience,fabric/material,color fastness,load-bearing capacity,workmanship,thickness,odor,description match,feature,comfort,brand,weight,appearance design,feel,storage effect,security,stickiness,sturdiness,color,accessories,other,elasticity

Storage

54

Tableware

tableware

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,durability,size,filtering effect,heat insulation effect,quantity,sound,capacity,suitability,cleaning difficulty,seal,usage effect,hardness,installation,practicality,convenience,fabric/material,color fastness,workmanship,thickness,odor,insulation effect,description match,feature,comfort,brand,weight,appearance design,feel,security,stickiness,color,accessories,other,elasticity

Tableware

55

Toy

toy

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,durability,size,quantity,riding experience,system performance,sound,capacity,suitability,hardness,usage effect,installation,display/print effect,stability,battery/battery life,practicality,convenience,fabric/material,content resources,color fastness,load-bearing capacity,workmanship,thickness,odor,description match,feature,comfort,brand,weight,appearance design,feel,security,stickiness,sturdiness,magnetic force,color,accessories,other,elasticity

Toys/Strollers/Educational/Building blocks/Models

56

Electrical appliances - Audio-visual appliances

audio_visual_appliances

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,transmission distance,odor,convenience,feature,capacity/space,other,color,sturdiness,durability,size,feel,lighting effect,workmanship,comfort,sound insulation effect,practicality,system performance,weight,fabric/material,appearance design,hardness,wearing effect,security,intercom/call quality,accessories,power,display effect,color fastness,suitability,brand,signal,sound,battery/battery life,quantity,installation,description match,thickness,usage effect,denoising effect,energy consumption

Audio-visual appliances

57

Electrical appliances - Kitchen appliances

kitchen_appliances

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,odor,convenience,feature,sharpness,capacity/space,other,color,sturdiness,durability,size,feel,filtering effect,workmanship,comfort,practicality,system performance,weight,fabric/material,water output,heating effect,appearance design,hardness,security,accessories,power,color fastness,suitability,firepower,brand,anti-scalding effect,insulation effect,cooling effect,sound,battery/battery life,non-stick effect,cleaning difficulty,quantity,installation,juicing effect,seal,description match,thickness,usage effect,energy consumption,crushing effect

Kitchen appliances

58

Kitchen/Cooking utensils

kitchenware

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,odor,convenience,feature,sharpness,capacity/space,other,color,sturdiness,durability,size,feel,filtering effect,workmanship,comfort,practicality,weight,fabric/material,water output,heating effect,appearance design,hardness,cleaning difficulty,security,load-bearing capacity,space/capacity,accessories,storage effect,color fastness,suitability,firepower,brand,sound,non-stick effect,quantity,installation,seal,description match,thickness,usage effect

Kitchen/Cooking utensils

59

Car accessories

car_accessories

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,system performance,stain removal/cleaning ability,practicality,protection,storage effect,weight,capacity/space,compatibility,size,convenience,description match,other,odor,breathability,installation,accessories,usage effect,display/print effect,quantity,battery/battery life,durability,color fastness,suitability,fabric/material,workmanship,hardness,brand,comfort,security,positioning,sound,appearance design,stickiness,feature,wind force/speed,thickness,installation technician,feel,sturdiness,color,fit,cleaning difficulty

Automotive/Supplies/Accessories/Modifications

60

3C digital accessories

digital_accessories

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,color,system performance,practicality,protection,weight,sensitivity,capacity/space,compatibility,size,wearing effect,convenience,description match,other,odor,accessories,installation,usage effect,display/print effect,anti-peeping effect,quantity,battery/battery life,durability,color fastness,suitability,fabric/material,anti-fingerprint effect,workmanship,hardness,brand,comfort,security,sound,appearance design,heat dissipation,stickiness,feature,wind force/speed,thickness,feel,sturdiness,charging speed,hole position,fit

3C digital accessories

61

Festival Supplies

gifts

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,practicality,weight,flavor,capacity/space,size,convenience,description match,other,odor,accessories,installation,usage effect,display/print effect,quantity,durability,color fastness,suitability,fabric/material,workmanship,air leakage,hardness,brand,comfort,security,sound,appearance design,wearing effect,taste,stickiness,feature,thickness,feel,sturdiness,color,brightness,lighting effect

Festive supplies/Gifts

62

Hardware

hardware

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,system performance,practicality,weight,work efficiency,model,capacity/space,size,convenience,description match,other,odor,accessories,installation,usage effect,display/print effect,quantity,power,battery/battery life,durability,color fastness,suitability,fabric/material,workmanship,operating speed,measurement error,hardness,brand,comfort,power,security,sound,appearance design,heat dissipation,stickiness,feature,wind force/speed,cutting effect,thickness,installation technician,feel,sturdiness,sharpness,color

Hardware/Tools

63

Pets

pets

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,size,stain removal/cleaning ability,practicality,palatability,weight,flavor,capacity/space,size,nutritional value,shelf life,deworming effect,convenience,description match,other,odor,accessories,installation,efficacy,survival rate,disinfection effect,usage effect,quantity,power,eating effect,clumping effect,durability,color fastness,suitability,fabric/material,dust,adverse reaction,workmanship,hardness,brand,comfort,absorbency,security,sound,appearance design,deodorizing effect,wearing effect,taste,feature,thickness,condition,feel,sturdiness,filtering effect,freshness,color,ingredient,cleaning difficulty

Pets/Pet food and supplies

64

Plants

plants

quality,seller service,value for money,logistics,authenticity,packaging,overall,freebie,size,plant organs,practicality,weight,germination rate,display effect,flavor,mowing effect,capacity/space,size,convenience,description match,other,odor,accessories,installation,survival rate,usage effect,quantity,power,durability,color fastness,suitability,fabric/material,workmanship,moisture,hardness,brand,comfort,sunshade effect,security,sound,appearance design,taste,feature,insecticidal effect,thickness,condition,flower reviving effect,feel,density,sturdiness,freshness,color,simulation effect

Flower delivery/Artificial flowers/Greenery and gardening

PredictResult example

PredictResult is a JSON string. You must deserialize it before parsing. The following example shows its structure.

{
    "code": 1000,
    "data": {
        "cost": "56.061ms",
        "textProb": 1.0,
        "aspectItem": [
            {
                "clause": "The fabric is cool and soft",
                "clauseIndex": "12,18",
                "aspectPolarity": "Positive",
                "terms": [
                    {
                        "aspectTerm": "texture",
                        "opinionTerm": "gentle",
                        "normedAspectTerm": "texture",
                        "normedOpinionTerm": "gentle"
                    },
                    {
                        "aspectTerm": "fabric",
                        "opinionTerm": "soft",
                        "normedAspectTerm": "fabric",
                        "normedOpinionTerm": "very soft"
                    },
                    {
                        "aspectTerm": "fabric",
                        "opinionTerm": "cool",
                        "normedAspectTerm": "fabric",
                        "normedOpinionTerm": "cool"
                    }
                ],
                "positiveProb": 1.0,
                "aspectCategory": "fabric/material",
                "negativeProb": 0.0
            },
            {
                "clause": "The workmanship is meticulous",
                "clauseIndex": "24,28",
                "aspectPolarity": "Positive",
                "terms": [
                    {
                        "aspectTerm": "workmanship",
                        "opinionTerm": "meticulous",
                        "normedAspectTerm": "workmanship",
                        "normedOpinionTerm": "meticulous"
                    }
                ],
                "positiveProb": 1.0,
                "aspectCategory": "workmanship",
                "negativeProb": 0.0
            },
            {
                "clause": "The style is fashionable and elegant ",
                "clauseIndex": "29,36",
                "aspectPolarity": "Positive",
                "terms": [
                    {
                        "aspectTerm": "style",
                        "opinionTerm": "elegant",
                        "normedAspectTerm": "pattern",
                        "normedOpinionTerm": "simple and elegant"
                    },
                    {
                        "aspectTerm": "style",
                        "opinionTerm": "fashionable",
                        "normedAspectTerm": "pattern",
                        "normedOpinionTerm": "fashionable"
                    }
                ],
                "positiveProb": 1.0,
                "aspectCategory": "style",
                "negativeProb": 0.0
            }
        ],
        "textPolarity": "Positive"
    },
    "message": "SUCCESS",
    "tracerID": "1604909057.375869"
}

Response parameters

Field

Description

textPolarity

The sentiment polarity of the entire text: Positive, Neutral, or Negative.

textProb

The confidence level of the sentiment polarity for the entire text. The value ranges from 0 to 1. A larger value indicates a higher probability that the text has the sentiment polarity specified by textPolarity.

aspectItem

A list of property sentiments. Each element is a JSON field.

aspectCategory

The property category.

aspectPolarity

The polarity of the property fragment: Positive, Neutral, or Negative.

clause

The sentiment clause.

clauseIndex

The start and end positions of the sentiment clause.

positiveProb

The confidence level for positive sentiment. The value ranges from 0 to 1. A larger value indicates a higher probability of positive sentiment.

negativeProb

The confidence level for negative sentiment. The value ranges from 0 to 1. A larger value indicates a higher probability of negative sentiment.

terms

A list of extracted property and sentiment terms. Each element is a JSON field.

aspectTerm

The property term.

opinionTerm

Sentiment lexicon

normedAspectTerm

The normalized property term. This is a standardized version of the property term that facilitates fine-grained aggregation. For example, the property terms `appearance`, `shape`, and `style` are all normalized to `appearance`.

normedOpinionTerm

The normalized opinion term. This is a standardized version of the opinion term that facilitates fine-grained aggregation. For example, the opinion terms `good-looking`, `beautiful`, and `pretty` are all normalized to `good-looking`.