Examples

Here are some examples of deep categorization using MeaningCloud API:

Categorize the feedback about a retail company in English.

We will use the Voice of the Customer model for Retail (VoC-Retail) to analyze the following text:

"Zara is great, lots of stylish and affordable clothes, shoes, and accessories."

  • Use the txt parameter to submit the text.
  • Set model to VoC-Retail_en.
Example using curl:
curl 'https://api.meaningcloud.com/deepcategorization-1.0' \
  -F 'key=YOUR API KEY' \
  -F 'model=VoC-Retail_en' \
  -F 'txt=Zara is great, lots of stylish and affordable clothes, shoes, and accessories.'
MeaningCloud API output:
{
"status":{
"code":
"0"
"msg":
"OK"
"credits":
"1"
}
"category_list":[
0:{
"code":
"Quality>Coverage>Product"
"label":
"Availability of products"
"abs_relevance":
"1"
"relevance":
"100"
}
1:{
"code":
"Quality>Satisfaction"
"label":
"Satisfaction"
"abs_relevance":
"1"
"relevance":
"100"
}
2:{
"code":
"Polarity>StrongPositive"
"label":
"Strong positive"
"abs_relevance":
"1"
"relevance":
"100"
}
3:{
"code":
"Condition>Price"
"label":
"Price"
"abs_relevance":
"1"
"relevance":
"100"
}
4:{
"code":
"Company>Zara"
"label":
"Zara"
"abs_relevance":
"1"
"relevance":
"100"
}
5:{
"code":
"Product>Garment"
"label":
"Product"
"abs_relevance":
"1"
"relevance":
"100"
}
6:{
"code":
"Product>Accessory"
"label":
"Product"
"abs_relevance":
"1"
"relevance":
"100"
}
]
}