# Creating an Amazon Comprehend connection

Amazon Comprehend connections are created in Data load editor or Script.

Once you have created a connection, you can select data from the available tables to send to Amazon Comprehend for calculations, and then load that data into your application. This connection can not only be used in your data load script but also in chart expressions to call model endpoints and perform real time chart expression calculations.

You must know the settings and access credentials to the Amazon Comprehend service that you want to connect to.

## Configurable settings

The following settings can be configured in the connection dialog:

Configurable settings in the connection dialog

| Field | Description |
| --- | --- |
| Select configuration | Drop-down menu item to select the configuration which determines which Amazon Comprehend service to use for text analysis.<br><br>Supported configurations:<br><br><ul> <li> <p>Sentiment Analysis</p> </li> <li> <p>Key phrase Extraction</p> </li> <li> <p>Language Detection</p> </li> <li> <p>Entity Recognition</p> </li> <li> <p>Syntax Analysis</p> </li> <li> <p>Personally Identifiable Information (PII) Detection</p> </li> </ul> |
| Settings | The following settings are available:<br><br><ul> <li> <p><span>AWS Region</span>: Select the region you intend to use for the comprehend service.</p> </li> <li> <p><span>Use FIPS Endpoint</span>: Specify if you need to use a FIPS compliant endpoint. </p> <p>This will only work if you choose a region that supports FIPS and for most users should be left as the default “No”.</p> </li> <li> <p><span>Language Code</span>: Specify the Language Code.</p> <p>This is the language of the text that you intend to do text analysis on.</p> <div><span>Information note</span>Language Code is not available for <span>Personally Identifiable Information (PII) Detection</span> as this configuration is English only.</div> </li> </ul> |
| Authentication | Provide the AWS authentication Access key and Secret key for the Amazon Comprehend endpoints. These need to be created with access to the right policy permissions.<br><br>The authentication properties can be found in the AWS console and need to be input every time the connection needs to be re-authenticated. |
| Association Field | A field from the input data table containing a unique identifier.<br><br>It is recommended to use an association field when creating an analytic connection to ensure a relationship between the generated content from machine learning the model and the source data maintained in the Qlik Sense data model. This can be any field with a unique ID, either from the source data or as part of the table load process. |
| Name | The name of the connection. The default name will be used if you do not enter a name. |

## Creating a new connection

Do the following:

1. Access the connector through Data load editor or Script.

2. Click Create new connection.

3. Under Space, select the space where the connection will be located.

4. Select Amazon Comprehend from the list of data connectors.

5. Fill out the connection dialog fields.

6. Click Create.

Your connection is now listed under Data connections.