cURL 用の GroupDocs.Classification Cloud は、IAB-2、Documents、または Sentiment タクソノミーに基づき、生テキストや文書を事前定義されたカテゴリに自動的に分類する方法を提供します。
.NET 用の GroupDocs.Classification Cloud SDK は、3 種類のタクソノミーに基づいて分類を実行します。生テキストまたはドキュメントの分類は、IAB-2、Document、または Sentiment タクソノミーに従って行われます。以下の例は、cURL を使用して IAB-2 タクソノミーに基づき生テキストを分類する方法を示しています。
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"
}