Просмотрите наши продукты

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

Установка

Пакет доступен на nuget.org. Его можно установить через консоль диспетчера пакетов следующей командой:

NuGet\Install-Package GroupDocs.Classification-Cloud

Version NuGet .NET


Требования

  • .NET Framework 2.0 или .NET Standard 1.6
  • NuGet
  • System.Web при целевой платформе .NET Framework 2.0
  • Учетные данные GroupDocs Cloud — Client ID and Client Secret на панели

Быстрый старт

Получение учетных данных API

Чтобы использовать GroupDocs.Classification Cloud, зарегистрируйтесь на панели GroupDocs.Cloud и получите Client ID и Client Secret.

Инициализация API

Следующий код запускает 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);

Полный пример см. в RunExamples.cs.

Классификация исходного текста

В этом примере текстовое описание классифицируется и возвращаются три лучших класса.

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());

Полный пример см. в Classification_CSharp_Classify_Raw_Text.cs.

Классификация документа из хранилища

В этом примере классифицируется документ Word, который уже находится в облачном хранилище.

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());

Полный пример см. в Classification_CSharp_Classify_Document_from_Storage.cs.

Получение поддерживаемых форматов файлов

Получите форматы, которые принимает API classification.

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);
}

Полный пример см. в Classification_CSharp_Classify_Get_Supported_File_Formats.cs.

Примеры на GitHub

Репозиторий GroupDocs.Classification Cloud .NET Examples содержит готовые к запуску примеры по темам:

CategoryExamples
КлассификацияИсходный текст, документ из хранилища
InfoПоддерживаемые форматы файлов

Как запустить примеры

  1. Клонируйте или скачайте репозиторий примеров
  2. Откройте Examples/GroupDocs.Classification.Cloud.Examples.CSharp.sln в Visual Studio 2017 или новее
  3. Щелкните решение правой кнопкой мыши и выберите Enable NuGet Package Restore
  4. Измените Examples/CSharp/RunExamples.cs и задайте Common.MyAppSid и Common.MyAppKey
  5. Соберите и запустите

Подробности см. в разделе Getting Started.


Product Docs Swagger Examples Blog Support Dashboard


Теги

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


 Русский