UiPath Documentation
document-understanding
2.2610
true
Document Understanding ガイド

異なる環境のモデルを使用する

外部アプリケーションの資格情報を使用して、異なるテナントや組織にデプロイされた Document Understanding モダン プロジェクト モデルにアクセスするよう外部アプリケーションを設定します。

Document UnderstandingTM モダン プロジェクトを使用する場合、外部アプリケーションを、さまざまなテナントや組織のモデルにアクセスできるように設定する必要があります。

この手順では、外部アプリケーションを使用して、さまざまな環境にデプロイされたモデルにアクセスする方法について包括的な概要を示します。外部アプリケーションのアクセス権の設定、これらのモデルを使用するための Studio ワークフローの設定、および運用環境のワークフローの設定に関するステップ バイ ステップの手順を記載しています。

この機能により、モデルをハイブリッド デプロイ環境で使用することもできます。その場合は、Document Understanding プロジェクトを AutomationCloudTM 上で設定し、Orchestrator とロボットをオンプレミスでデプロイします。

  1. 外部アプリケーションを設定する
  2. UiPath Studio のワークフローを設定する
  3. モデル バージョンをパラメーターとして設定する
  4. Document Understanding Process テンプレート

外部アプリケーションを設定する​

  1. Automation Cloud のテナントに移動します。

  2. [管理] ページに移動し、組織を選択します。

  3. [外部アプリケーション] ページに移動します。

  4. [外部アプリケーション] ページから [アプリケーションを追加] を選択します。

    ヒント:

    外部アプリケーションの追加について詳しくは、「 外部の OAuth アプリケーションを管理する 」をご覧ください。

  5. [アプリケーション名] フィールドにアプリケーションの一意の名前を入力します。

  6. [アプリケーションの種類] セクションでアプリケーションの種類を選択します。

    • 機密アプリケーション: アプリ シークレットを安全に保存するのに適しています。高度なセキュリティ要件がある場合に使用します。
    • 非機密アプリケーション: アプリ シークレットを安全に保存する必要がない場合にのみ使用します。

  7. 外部アプリケーションのアクセス スコープを定義します。

    1. [リソース] セクションから [スコープを追加] を選択します。
    2. [リソース] ドロップダウン リストから [Document Understanding] を選択します。
    3. ユーザー スコープを設定して、ユーザー コンテキスト内で権限を付与します。

Select the checkboxes corresponding to the logical API permissions you want to grant as per your requirement in the User scope(s) tab. If you grant permissions under user scope, it is implied that the external application can access those resources within a user context. Therefore, a user with the corresponding permissions must be logged in. 4. Configure Application scope(s) to provide application-level access for broader automation needs.

機密アプリケーションを使用している場合は、[アプリケーション スコープ] タブに移動し、必要に応じて、選択したリソースに対するアプリケーション レベルでの権限を割り当てます。アプリケーション スコープで権限を委任すると、外部アプリケーションは、ユーザーの操作なしで、選択したスコープ全体にわたってデータにアクセスできます。

非機密アプリケーションは、アプリケーションのスコープにアクセスできません。

5. Select Save. :::note If you have registered the external application with user scopes, add a Redirect URL. This URL will receive the authorization response. However, if you selected only application scopes, providing a redirect URL is optional. ::: 8. Select Add to create the registration.

確認メッセージが表示されます。機密アプリケーションの場合、このメッセージにはアプリ シークレットが含まれます。登録済み外部アプリケーションは、このシークレットを使用して認可を要求できます。アプリ シークレットは再度確認することはできないため、必ず安全な場所に保存しておいてください。

UiPath Studio のワークフローを設定する​

開始する前に、次の前提条件が満たされていることを確認します。

  • 対応する Windows プロジェクト バージョンを使用している。
  • Intelligent OCR アクティビティ パッケージがインストールされていることを確認する。IntelligentOCR.Activities パッケージは、v6.22.1 以降の Document Understanding モダン プロジェクトの使用をサポートしています。
    ヒント:

    DocumentUnderstanding.Activities パッケージと IntelligentOCR.Activities パッケージの違いの詳細、および各パッケージをどのような場合に使用すべきかのガイダンスについては、「Document Understanding のオートメーション」をご覧ください。

  1. UiPath Studio プロジェクトを開きます。
  2. タクソノミーを定義します。
    1. タクソノミー マネージャーを開き、オートメーションに関連するドキュメントの種類とフィールドを定義します。

プロジェクトのタクソノミーには、各ドキュメントの種類と必要なフィールドを含める必要があります。Studio で作成するタクソノミーには、Document Understanding モダン プロジェクトに含まれない追加のドキュメントの種類とフィールドを含めることができます。フォーム抽出器や正規表現ベースの抽出器などの追加の抽出器を使用してさまざまなドキュメントの種類に対応する場合、この手順が必要になります。

3. Install the IntelligentOCR.Activities package to use activities such as Document Understanding Project Extractor and Document Understanding Project Classifier.

  1. [データ抽出スコープ] アクティビティを追加して抽出モデルを設定し、[Document Understanding プロジェクト抽出器] アクティビティを含めます。

2. Add the Classify Document Scope activity to configure classification models and include the Document Understanding Project Classifier activity. 4. Configure design-time credentials.

  1. アクティビティ スコープから [機能を取得] ウィザードを開きます。

The wizard is displayed when you include the Document Understanding Project activities within that scope. This wizard allows you to configure design-time credentials needed to map the taxonomy fields of a modern project. 2. Fill in the following information: * App ID and App Secret from the external application. * Tenant URL for the target environment. 3. Select Get Projects and choose the needed project and version. 4. Close the wizard.

5. Map the taxonomy.

  1. [データ抽出スコープ] アクティビティ内の [抽出器を設定] を選択します。
  2. 各ドキュメントの種類に対して、プロジェクトのタクソノミーからモデルのタクソノミーへのマッピングを作成します。

この手順を実行するには、タクソノミーからドキュメントの種類を選択し、このドキュメントの種類の各フィールドを、Document Understanding プロジェクト用に設計されたモデルの対応するフィールドに合わせます。

6. Save the run-time credential as an Orchestrator Asset.

  1. Automation Cloud のテナントに移動します。
  2. Orchestrator に移動します。
  3. オートメーション フォルダーを選択します。
  4. [アセット] タブに移動します。
  5. [アセットを追加] を選択し、ドロップダウン リストから [新しいアセットを作成] を選択します。
  6. [アセット名] フィールドに名前を入力します。
  7. [種類] ドロップダウン リストから [Credential] を選択します。
  8. 先ほど作成したアプリ ID とアプリ シークレットをユーザー名およびパスワードとして使用します。

7. Configure run-time credentials in Studio.

  1. Studio プロジェクトに移動します。
  2. [データ抽出スコープ] アクティビティに移動します。
  3. [実行時の資格情報アセット] プロパティを設定します。

Use this field to access Document Understanding modern project resources while the robot is connected to a local Orchestrator or from a different tenant. You can choose to enter a Credential Asset, for authentication purposes, in one of the following ways: * Select the desired credential asset from the Orchestrator to which the robot is connected from the drop-down list. * Enter the path to the Orchestrator Credential Asset where you store the external application credentials to access the project. The path format must be as follows: <OrchestratorFolderName>/<AssetName>. 4. Configure the Runtime Tenant Url property.

このフィールドは、[ 実行時の資格情報アセット ] プロパティとともに使用します。抽出を実行するためにロボットが接続するテナントの URL を入力します。URL は https://<baseURL>/<OrganizationName>/<TenantName>の形式である必要があります。

外部アプリケーションは、テナント内のすべての Document Understanding プロジェクトにアクセスできます。プロジェクトごとに個別にアクセス権を設定する必要はありません。

モデル バージョンをパラメーターとして設定する​

プロジェクトのバージョンをパラメーターとして設定すると、ワークフローのコードを調整することなく、オートメーションのワークフローを新しいバージョンのプロジェクトに合わせて更新できます。

  1. Automation Cloud のテナントに移動します。

  2. Orchestrator に移動します。

  3. オートメーション フォルダーを選択します。

  4. [アセット] タブに移動します。

  5. [アセットを追加] を選択し、ドロップダウン リストから [新しいアセットを作成] を選択します。

  6. [アセット名] フィールドに名前を入力します。

  7. [種類] ドロップダウン リストから [Text] を選択します。

  8. [Text] フィールドに名前を入力して、バージョン固有のアセットを定義します。

  9. [作成] を選択します。

This allows you to update automation workflows for new project versions without changing the workflow code. When the automation is deployed to a specified folder, the model version is set according to the asset in Orchestrator. This process is similar to saving external application credentials as assets. 10. Navigate to your Studio project. 11. Add a Get Asset activity in your workflow to retrieve the version asset. 12. Pass the retrieved value as an input variable to the Document Understanding Project activities.

![Screenshot of the Get Asset activity in UiPath Studio.](https://dev-assets.cms.uipath.com/assets/images/document-understanding/2-2610-screenshot-of-the-get-asset-activity-in-uipath-studio-541649-0e1f9f61-798943e7.webp)
![Screenshot of the Get Asset activity in UiPath Studio.](https://dev-assets.cms.uipath.com/assets/images/document-understanding/2-2610-screenshot-of-the-get-asset-activity-in-uipath-studio-541649-0e1f9f61-798943e7.webp)

Document Understanding Process テンプレート​

Document Understanding Process は、ドキュメント処理フローチャートに基づいた非常に機能的な UiPath® Studio プロジェクト テンプレートです。これを使用して、Document UnderstandingTM のデモまたは大規模な実装の作業を開始できます。

このプロセスでは、ログ、例外処理、リトライのメカニズムのほか、Document Understanding ワークフローですぐに使えるあらゆるメソッドを提供します。

詳しくは、「Document Understanding Process テンプレート」ページをご覧ください。

このページは役に立ちましたか?

接続

ヘルプ リソース サポート(opens in new window)

学習する UiPath アカデミー(opens in new window)

質問する UiPath フォーラム(opens in new window)

最新情報を取得