Classify raw text and documents as per IAB-2, Documents, and Sentiment taxonomy into predefined classes.
Start Free TrialGroupDocs.Classification Cloud for cURL provides you an automated way to classify your raw text or documents into predefined categories based on IAB-2, Documents, or Sentiment taxonomy.
GroupDocs.Classification Cloud SDK for .NET performs classification based on three types of Taxonomies. The raw text or document classification is done as per IAB-2, Document, or Sentiment taxonomies. Following example shows how to classify raw text based on IAB-2 taxonomy using cURL:
curl -X POST "https://api.groupdocs.cloud/v1.0/classification/classify?BestClassesCount=3" \
-H "accept: application/json" \
-H "authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d "{ \"description\": \"Medicine is an important part of our life\"}"
{
"bestClassName": "Healthy_Living",
"bestClassProbability": 53.77,
"bestResults": [
{
"className": "Healthy_Living",
"classProbability": 53.77
},
{
"className": "Medical_Health",
"classProbability": 38.27
},
{
"className": "Pets",
"classProbability": 1.98
}
],
"code": 200,
"status": "OK"
}