製品を閲覧する

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

インストール

パッケージは、availablePyPI にあり、経由でインストールできますpip次のコマンドを実行します。

pip install groupdocs-classification-cloud

PyPI - Version PyPI - Downloads Python-GroupDocsCloud


要件

  • Python 2.7 または 3.4+
  • pip パッケージマネージャー
  • GroupDocs クラウド認証情報Client ID and Client Secretダッシュボードから

依存関係

SDK は次のパッケージを自動的にインストールします。

パッケージ制約
urllib3>= 1.15
six>= 1.10
certifi
python-dateutil

ドキュメント分類 Python クラウド REST API

GroupDocs.Classification Cloud SDK for Pythonは、高度なテキストおよびドキュメント分類機能を必要とする開発者向けに設計された強力な REST API です。複数のドキュメント形式と幅広い分類法をサポートするこの API を使用すると、生のテキスト、ドキュメント、テキストのバッチを IAB-2、ドキュメント、センチメント分類法などのさまざまなカテゴリに分類できます。 API は JWT 認証で保護されており、Python SDK により Web アプリ、スクリプト、自動化ワークフローへの統合が簡素化されます。

文書分類機能

ファイル形式のサポート - PDF、DOCX、TXT などのさまざまな形式でテキストとドキュメントを分類します。
多言語サポート - 英語、中国語、スペイン語、ドイツ語などの複数言語でドキュメントを分類します。
カスタム分類 - ニーズに合わせてカスタム分類カテゴリを作成します。
バッチ分類 - 1 つのリクエストで最大 10 個のテキストを分類します。
コンテンツベースの分類 - 本文のコンテンツに基づいてドキュメントを分類します。

分類分類機能

IAB-2 分類法 - デジタル コンテンツと広告の IAB-2 標準分類法を使用して分類します。
ドキュメントの分類 - ドキュメントを ADVE、電子メール、フォーム、レター、メモ、請求書、レポート、履歴書などのカテゴリに分類します。
感情分類法 - テキストを肯定的な感情と否定的な感情に分類します。
センチメント 3 分類 - テキストをポジティブ、ニュートラル、またはネガティブなセンチメントに分類します。

API 統合機能

RESTful API - REST API 経由で分類にアクセスし、簡単に統合できます。
リアルタイム分類 - テキストとドキュメントのリアルタイム分類を実行します。
JSON および XML 応答 - 結果を JSON または XML で受信して、システム統合を容易にします。

セキュリティおよび認証機能

JWT 認証 - JWT 認証による安全な API アクセス。
クライアント ID とシークレット - 安全な API 呼び出しにはクライアント ID とシークレットを使用します。
データ暗号化 - クライアント アプリとClassification Cloud APIの間の通信を暗号化します。

パフォーマンス機能

スケーラブルなインフラストラクチャ - 大量のドキュメントを効率的に処理します。
高精度 - 高度な ML アルゴリズムを使用して、高精度の結果を提供します。
高速処理 - 高性能アプリの高速分類のために最適化されています。

ライセンスと認証

評価モード - 無料試用アカウントで API を試してください。
安全な認証 - 安全な API アクセスにはクライアント ID とクライアント シークレットを使用します。
MIT ライセンス - Python SDK は、以下に基づいてライセンスされています。MIT License.

サポートされているドキュメント形式

GroupDocs.Classification Cloud は、次のファイル形式の分類をサポートしています。

フォーマット名拡張子
ポータブルドキュメントフォーマットPDF
Words ドキュメント形式DOC、DOCX、DOCM、DOT、DOTX、DOTM
リッチ テキスト形式RTF
プレーンテキストファイルTXT
OpenDocument フォーマットODT、OTT

完全な形式リストについては、documentation.

サポートされている分類法

IAB-2 分類法 - 自動車、書籍と文学、ビジネスと金融、テクノロジーとコンピューティング、旅行などのカテゴリ。
ドキュメント分類 - ADVE、電子メール、フォーム、レター、メモ、ニュース、請求書、レポート、履歴書、科学、その他などの分類。
感情分類法 - 感情の 2 値分類: ネガティブとポジティブ。
センチメント 3 の分類 - 3 つのクラスのセンチメント: ネガティブ、ニュートラル、ポジティブ。

分類の詳細については、documentation.

クイックスタート

API 認証情報を取得する

GroupDocs.Classification Cloud を使用するには、次の URL でサインアップしてください。GroupDocs.Cloud Dashboardクライアント IDクライアント シークレット を取得します。

API を初期化する

GroupDocs.Classification Cloud SDK for Python の使用を開始するには、次のコードを使用します。

import groupdocsclassificationcloud
from groupdocsclassificationcloud import ClassificationApi, Configuration

# Get your ClientId and ClientSecret at https://dashboard.groupdocs.cloud
client_id = "YourClientId"
client_secret = "YourClientSecret"

# Create API configuration
configuration = Configuration(client_id, client_secret, "https://api.groupdocs.cloud")

# Create instance of the Classification API
classification_api = ClassificationApi(configuration=configuration)

生のテキストを分類する

初期化したら、次の基本的な例を使用して生のテキストを分類します。

import groupdocsclassificationcloud
from groupdocsclassificationcloud import ClassificationApi, Configuration, BaseRequest, ClassifyRequest

client_id = "YourClientId"
client_secret = "YourClientSecret"

configuration = Configuration(client_id, client_secret, "https://api.groupdocs.cloud")
classification_api = ClassificationApi(configuration=configuration)

request = ClassifyRequest(BaseRequest("Try text classification"), 3)
result = classification_api.classify(request)

print("Best class name = " + result.best_class_name)
print("Best class probability = " + str(result.best_class_probability))

このクイック スタート ガイドを使用すると、Python アプリケーションで GroupDocs.Classification Cloud を使用してテキストとドキュメントの分類を開始する準備が整います。詳細については、次のサイトを参照してください。documentation.

サポートされているファイル形式を取得する

分類 API を通じて利用可能な、サポートされているファイル形式の完全なリストを取得します。

import groupdocsclassificationcloud
from groupdocsclassificationcloud import ClassificationApi, Configuration, GetSupportedFileFormatsRequest

client_id = "YourClientId"
client_secret = "YourClientSecret"

configuration = Configuration(client_id, client_secret, "https://api.groupdocs.cloud")
classification_api = ClassificationApi(configuration=configuration)

request = GetSupportedFileFormatsRequest()
response = classification_api.get_supported_file_formats(request)

print("Supported file-formats:")
for fmt in response.formats:
    print("{0} ({1})".format(fmt.file_format, fmt.extension))

クラウドストレージからドキュメントを分類する

ドキュメント分類を使用して、GroupDocs クラウド ストレージに保存されているドキュメントを分類します。

import groupdocsclassificationcloud
from groupdocsclassificationcloud import ClassificationApi, Configuration, BaseRequest, ClassifyRequest, FileInfo

client_id = "YourClientId"
client_secret = "YourClientSecret"

configuration = Configuration(client_id, client_secret, "https://api.groupdocs.cloud")
classification_api = ClassificationApi(configuration=configuration)

request = ClassifyRequest(
    BaseRequest(document=FileInfo(name="test_multi_pages.docx", folder="Temp/SdkTests/python"))
)
result = classification_api.classify(request)

print("Best class name = " + result.best_class_name)
print("Best class probability = " + str(result.best_class_probability))

センチメント分類法を使用してテキストを分類する

生のテキストに対してバイナリまたは 3 クラスのセンチメント分析を実行します。

import groupdocsclassificationcloud
from groupdocsclassificationcloud import ClassificationApi, Configuration, BaseRequest, ClassifyRequest

client_id = "YourClientId"
client_secret = "YourClientSecret"

configuration = Configuration(client_id, client_secret, "https://api.groupdocs.cloud")
classification_api = ClassificationApi(configuration=configuration)

request = ClassifyRequest(
    BaseRequest("This product exceeded my expectations!"),
    best_classes_count=1,
    taxonomy="Sentiment3"
)
result = classification_api.classify(request)

print("Sentiment = " + result.best_class_name)

GitHub のサンプル プロジェクト

GroupDocs.Classification Cloud Python SDKリポジトリには、すぐに実行できる単体テストと以下をカバーするサンプルが含まれています。

カテゴリー
テキストの分類IAB-2 分類法を使用して生のテキストを分類する
文書の分類クラウド ストレージに保存されたドキュメントを分類する
情報サポートされているファイル形式
感情分析2 値および 3 クラスの感情分類

サンプルの実行方法

  1. クローンを作成するか、ダウンロードします。SDK repository2.編集Settings/servercreds.jsonそしてあなたの設定をAppSidそしてAppKey3. 依存関係をインストールします。pip install groupdocs-classification-cloud -U4. リポジトリのルートからテストを実行します。python -m unittest discover -s test

詳細については、次のサイトをご覧ください。Getting Started.


Product Docs Swagger Examples Blog Support Dashboard


タグ

Document Classification API | Python Cloud API | GroupDocs.Classification Cloud | REST API | Text Classification | Document Taxonomy | IAB-2 Taxonomy | Sentiment Taxonomy | Sentiment3 Taxonomy | JWT Authentication | Multi-language Support | Batch Classification | Content-Based Classification | Real-time Classification | Sentiment Analysis | Machine Learning Classification | High Accuracy Classification | Secure API Access | Cloud Storage Integration | Customer Feedback Analysis | Social Media Monitoring | Cross-platform API


 日本