Amazon Comprehend

Enable your integration with models from Amazon Comprehend.

Supported Labeling Types: Row labeling

We have simplified the process of connecting our system with the Amazon Comprehend model. If you already have data and training pipelines in Amazon Comprehend, you can utilize your trained model to enhance the performance.

To use the Amazon Comprehend model, follow these steps:

Setup Datasaur ML Assisted Extension

Please make sure you have access to our ML-assisted labeling extension with AWS Comprehend as a provider.

  1. Create a custom project for row labeling.

  2. Click the gear icon in the extension panel on the right to open the Manage extensions dialog.

  3. From the Manage extensions dialog, enable the ML-assisted labeling extension.

Manage extensions dialog
  1. Once enabled, select Amazon Comprehend as the service provider.

Image of ML Assisted with Amazon Comprehend
ML Assisted with Amazon Comprehend

Setup Role in AWS Identity and Access Management (IAM)

Before we start to create Role in the IAM page, please create these policies first for your permissions when creating a new Role.

  1. Go to your IAM page, navigate to the Policies section, and then create a new policy.

  2. You can download the examples below.

Now you can continue to create a new Role with the policy.

  1. Go to the IAM page and navigate to the Roles section

  2. Click on Create Roles then select AWS account as the role type and insert the Account ID and External ID. These values are automatically generated within the Datasaur ML-assisted labeling extension and can be copied and pasted into the AWS platform.

    Image of Select trusted entity Menu
    Select trusted entity
  3. On the Add permissions step, search for the policy you created earlier and add it to the permissions.

    Image of Add permissions page
    Add permissions
  4. Provide a role name and click Create role.

    Image of Role Creation
  5. The role will be created successfully.

  6. View your role and copy the Role ARN.

    Image of Role Menu to copy Role ARN
    Role ARN
  7. Paste this information into the ML-Assisted labeling extension.

  8. Navigate to the Amazon Comprehend page and retrieve the Endpoint ARN. Copy the obtained Endpoint ARN and paste it into the extension.

    Image of Endpoint Details
    Endpoint details

Start Prediction

Once you have configured the settings, click Predict labels to generate predictions from your model.

Image of Prediction result
Prediction results

Last updated