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.

Docs Swagger Examples Blog Support Release Notes Dashboard

Installation

The package is available at nuget.org and it can be installed via package manager console by executing following command:

PM> NuGet\Install-Package GroupDocs.Classification-Cloud

Version NuGet .NET


Get Started

You do not need to install anything to get started with GroupDocs.Classification Cloud SDK for .Net. Just create an account at GroupDocs for Cloud and get your application information.

Simply execute Install-Package GroupDocs.Classification-Cloud from Package Manager Console in Visual Studio to fetch & reference GroupDocs.Classification assembly in your project. If you already have GroupDocs.Classification Cloud SDK for .Net and want to upgrade it, please execute Update-Package GroupDocs.Classification-Cloud to get the latest version.

Please check the GitHub Repository for common usage scenarios.

Classify Raw Text Using GroupDocs.Classification Cloud

Learn how to classify raw text into specific categories using the GroupDocs.Classification Cloud API. This example demonstrates the classification process in C# with detailed comments.

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

namespace GroupDocs.Classification.Cloud.Sdk.Examples
{
    class Classification_CSharp_Classify_Raw_Text
    {
        public static void Run()
        {
            // Get your AppSID and AppKey from https://dashboard.groupdocs.cloud/ (free registration required)
            var configuration = new Configuration
            {
                AppSid = "YOUR_APP_SID",
                AppKey = "YOUR_APP_KEY"
            };

            // Initialize the Classification API instance
            var apiInstance = new ClassificationApi(configuration);

            try
            {
                // Create a classify request with the text to be classified and the taxonomy type
                var request = new ClassifyRequest(new BaseRequest() { Description = "Medicine is an important part of our life" }, "default");

                // Get classification results
                var response = apiInstance.Classify(request);
                
                // Output the classification result to the console
                Console.WriteLine("Best Class Name: " + response.BestClassName);
                Console.WriteLine("Best Class Probability: " + response.BestClassProbability);
            }
            catch (Exception e)
            {
                // Handle any exceptions that occur during the API call
                Console.WriteLine("Exception when calling ClassificationApi.Classify: " + e.Message);
            }
        }
    }
}

Get Supported File Formats Using GroupDocs.Classification Cloud API

Discover how to list all the supported file formats using the GroupDocs.Classification Cloud API. This example shows how to retrieve this information in C#.

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

namespace GroupDocs.Classification.Cloud.Sdk.Examples
{
    class Classification_CSharp_Classify_Get_Supported_File_Formats
    {
        public static void Run()
        {
            // Get your AppSID and AppKey from https://dashboard.groupdocs.cloud/ (free registration required)
            var configuration = new Configuration
            {
                AppSid = "YOUR_APP_SID",
                AppKey = "YOUR_APP_KEY"
            };

            // Initialize the Classification API instance
            var apiInstance = new ClassificationApi(configuration);

            try
            {
                // Create a request to get the list of supported file formats
                var request = new GetSupportedFileFormatsRequest();

                // Retrieve the supported file formats
                var response = apiInstance.GetSupportedFileFormats(request);

                // Loop through and output each supported format
                foreach (var format in response.Formats)
                {
                    Console.WriteLine("File Format: " + format.FileFormat + ", Extension: " + format.Extension);
                }
            }
            catch (Exception e)
            {
                // Handle any exceptions that occur during the API call
                Console.WriteLine("Exception when calling ClassificationApi.GetSupportedFileFormats: " + e.Message);
            }
        }
    }
}

Classify Document Using IAB-2 Taxonomy in GroupDocs.Classification

Learn how to classify documents into IAB-2 taxonomy categories using the GroupDocs.Classification Cloud API. This example illustrates the process in C#.

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

namespace GroupDocs.Classification.Cloud.Sdk.Examples
{
    class Classification_CSharp_Classify_Document_IAB2
    {
        public static void Run()
        {
            // Get your AppSID and AppKey from https://dashboard.groupdocs.cloud/ (free registration required)
            var configuration = new Configuration
            {
                AppSid = "YOUR_APP_SID",
                AppKey = "YOUR_APP_KEY"
            };

            // Initialize the Classification API instance
            var apiInstance = new ClassificationApi(configuration);

            try
            {
                // Define the document to classify
                var documentInfo = new FileInfo { Folder = "path/to/folder", Name = "document.docx" };

                // Create a classify request with the document info and specify the IAB-2 taxonomy
                var request = new ClassifyRequest(new BaseRequest() { Document = documentInfo }, "default");

                // Get classification results
                var response = apiInstance.Classify(request);
                
                // Output the classification result to the console
                Console.WriteLine("Best Class Name: " + response.BestClassName);
                Console.WriteLine("Best Class Probability: " + response.BestClassProbability);
            }
            catch (Exception e)
            {
                // Handle any exceptions that occur during the API call
                Console.WriteLine("Exception when calling ClassificationApi.Classify: " + e.Message);
            }
        }
    }
}

Docs Swagger Examples Blog Support Release Notes 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