Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.


Product Docs Swagger Examples Blog Support Dashboard

Installation

The package is available at nuget.org and it can be installed via the Package Manager Console by executing the following command:

NuGet\Install-Package GroupDocs.Classification-Cloud

Version NuGet .NET


Requirements

  • .NET Framework 2.0 or .NET Standard 1.6
  • NuGet
  • System.Web when targeting .NET Framework 2.0
  • GroupDocs Cloud credentials — Client ID and Client Secret from the Dashboard

Quick Start

Get your API credentials

To use GroupDocs.Classification Cloud, sign up at GroupDocs.Cloud Dashboard and get your Client ID and Client Secret.

Initialize the API

Use the following code to start using the GroupDocs.Classification Cloud SDK for .NET.

using GroupDocs.Classification.Cloud.Sdk.Api;
using GroupDocs.Classification.Cloud.Sdk.Client;

var configuration = new Configuration
{
    AppSid = "YourClientId",
    AppKey = "YourClientSecret"
};

var apiInstance = new ClassificationApi(configuration);

See the full example in RunExamples.cs.

Classify raw text

This example classifies a text description and returns the best three classes.

using GroupDocs.Classification.Cloud.Sdk.Api;
using GroupDocs.Classification.Cloud.Sdk.Client;
using GroupDocs.Classification.Cloud.Sdk.Model;
using GroupDocs.Classification.Cloud.Sdk.Model.Requests;

var configuration = new Configuration
{
    AppSid = "YourClientId",
    AppKey = "YourClientSecret"
};
var apiInstance = new ClassificationApi(configuration);

var request = new ClassifyRequest(
    new BaseRequest { Description = "Try Text classification using GroupDocs.Classification Cloud API" },
    "3");

var response = apiInstance.Classify(request);
Console.WriteLine(response.ToString());

See the full example in Classification_CSharp_Classify_Raw_Text.cs.

Classify a Document from Storage

This example classifies a Word document that is already in cloud storage.

using GroupDocs.Classification.Cloud.Sdk.Api;
using GroupDocs.Classification.Cloud.Sdk.Client;
using GroupDocs.Classification.Cloud.Sdk.Model;
using GroupDocs.Classification.Cloud.Sdk.Model.Requests;

var configuration = new Configuration
{
    AppSid = "YourClientId",
    AppKey = "YourClientSecret"
};
var apiInstance = new ClassificationApi(configuration);

var request = new ClassifyRequest(new BaseRequest
{
    Document = new FileInfo
    {
        Name = "one-page.docx",
        Folder = ""
    }
}, bestClassesCount: "3");

var response = apiInstance.Classify(request);
Console.WriteLine(response.ToString());

See the full example in Classification_CSharp_Classify_Document_from_Storage.cs.

Get Supported File Formats

Retrieve the formats the classification API accepts.

using GroupDocs.Classification.Cloud.Sdk.Api;
using GroupDocs.Classification.Cloud.Sdk.Client;
using GroupDocs.Classification.Cloud.Sdk.Model.Requests;

var configuration = new Configuration
{
    AppSid = "YourClientId",
    AppKey = "YourClientSecret"
};
var apiInstance = new ClassificationApi(configuration);

var response = apiInstance.GetSupportedFileFormats(new GetSupportedFileFormatsRequest());

foreach (var formatval in response.Formats)
{
    Console.WriteLine("FileFormat: " + formatval.FileFormat + "  Ext: " + formatval.Extension);
}

See the full example in Classification_CSharp_Classify_Get_Supported_File_Formats.cs.

Examples on GitHub

The GroupDocs.Classification Cloud .NET Examples repository includes ready-to-run examples covering:

CategoryExamples
ClassifyRaw text, document from storage
InfoSupported file formats

How to run the examples

  1. Clone or download the examples repository
  2. Open Examples/GroupDocs.Classification.Cloud.Examples.CSharp.sln in Visual Studio 2017 or later
  3. Right-click the solution and select Enable NuGet Package Restore
  4. Edit Examples/CSharp/RunExamples.cs and set Common.MyAppSid and Common.MyAppKey
  5. Build and run

For more details, visit Getting Started.


Product Docs Swagger Examples Blog Support Dashboard


Tags

Document Classification API | .NET Cloud API | GroupDocs.Classification Cloud | REST API | Text Classification | Document Taxonomy | IAB-2 Taxonomy | Sentiment Taxonomy | Sentiment3 Taxonomy | JWT Authentication | Multi-language Support | Custom Classification | Batch Classification | Content-Based Classification | Real-time Classification | JSON Responses | XML Responses | High Accuracy Classification | Machine Learning Classification | Cloud Storage Integration | File Versioning | Folder Management | Docker Support | Self-hosting API | Automatic Scaling | Portable Document Format | Words Document Formats | Rich Text Formats | Plain Text Files | OpenDocument Formats | API Explorer | Comprehensive Documentation | Multi-Platform Support | SDK Support | Secure API Access | Data Encryption | Client ID and Secret | Scalable Infrastructure | Fast Processing | Advanced Text Classification | Real-time API Integration | Targeted Advertising | Content Management | Customer Feedback Analysis | Sentiment Analysis | Social Media Monitoring | GitHub Repository


 English