Marketplace
latest
false
Banner background image
Marketplace User Guide
Last updated Apr 16, 2024

Quickstart - Train and Get Model

Overview

The purpose of this guide is to help you create a working sample that uses the following Azure Form Recognizer activities:

This working sample enables you to quickly verify the connection to your Azure Form Recognizer resource and get familiar with the activity's input/output datatypes.

After completing the steps in this guide, you'll have an automation sequence that does the following:

  1. Establishes a connection to your Azure Form Recognizer resource (Azure Form Recognizer Scope).
  2. Creates a new custom training model using the source form documents that you stored during Setup (Train Model).
  3. Retrieves and outputs the status of the train model operation (Do While, Get Model Info, and Write Line).
  4. Retrieves and outputs the keys extracted during the training model operation (Get Model Keys, For Each, and Write Line).
  5. Deletes the new custom training model that you created (Delete Model).



Prerequisites

Before you begin:

  1. Complete the Azure Form Recognizer Setup guide.

Steps

Build Your Project

  1. Add the Azure Form Recognizer Scope to your project.
  2. In the Subscription Key and Endpoint properties, enter the Key1 and Endpoint values that you noted when creating your Azure Form Recognizer resource.
  3. Add the Train Model activity inside the Azure Form Recognizer Scope activity.
  4. Enter the Azure Storage Blob Uri of the blob container that contains the source form documents you're using for your model.

  5. Create and enter a String variable in the Model Id property (e.g., modelId).


  6. Add the Get Model Info.
  7. In the Model Id property, enter the String variable you created for the Train Model activity (e.g., modelId).
  8. Create and enter a KeysResult[] variable in the Keys poperty (e.g., keys).
  9. Add a For Each activity after the Get Model Info activity.
  10. In the TypeArgument property, select String.
  11. In the Values property, enter the KeysResult[] variable with an array item identifier and the Keys property (e.g., keys(0).Keys).
  12. Inside the For Each activity, add a Write Line activity.

    1. In the Text property, enter "Key: "+item.
  13. Add the Delete Model activity after the For Each activity.
  14. In the Model Id property, enter the String variable you created for the Train Model activity (e.g., modelId).
  15. Run the sequence and verify the Output window includes the expected values.



You're done!

To learn more about the Azure Form Recognizer activities (including example property inputs/outputs), see the Activities page for a complete list of activities and links to the detail pages.

  • Overview
  • Prerequisites
  • Steps
  • Build Your Project

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.