Key Phrase Extraction activity

An activity that maps data from the key phrase extraction function in Microsoft Cognitive Services to your schema. Key phrase extraction gets key phrases from specified text.


Key Phrase Extraction activity

Configure the Key Phrase Extraction activity

To configure the Key Phrase Extraction activity, do the procedure in this topic.

Examples

Good to Know

How to Start

  1. On the Application Explorer screen, do one of these:
  2. Do one of these:
    • Add an activity:
      1. In the Process Builder, in the Activity Library, open the Cognitive Services Cognitive Services icon tab.
      2. On the Cognitive Services Cognitive Services icon tab, drag the Key Phrase Extraction Key Phrase Extraction icon activity onto your process.
    • Change an activity:
      1. In your process, double-click your activity.

General Configuration

Specifies the basic settings for the Key Phrase Extraction activity.

Figure: General Configuration screen

General Configuration screen

Fields

Field Name Definition

Display Name

Function:
Specifies the activity name that shows in your process.
Accepted Values:
One line of text that can have spaces.
Default Value:
None
Accepts Process Data Variables:
No
Example:
This is a common configuration field that is used in many examples. Refer to:
  • Examples - Step-by-step use case examples, information about what types of examples are provided in the AgilePoint NX Product Documentation, and other resources where you can find more examples.

Description

Function:
Specifies an optional text description for your activity.
Accepted Values:
More than one line of text.
Default Value:
None
Accepts Process Data Variables:
No

Key Phrase Extraction Configuration

Configures the request and response settings to get the key phrases from text.

Figure: Key Phrase Extraction Configuration > Request tab

Key Phrase Extraction Configuration Request tab

Fields

Field Name Definition

Cognitive Services

Function:
Specifies the access token that connects to your Microsoft Cognitive Services.
Accepted Values:
A list of access tokens configured for your environment.

The selected access token must have the Cognitive Service Type configured for Text Analytics API.

Default Value:
None
Example:
Refer to:

Add Token Add Token icon

Opens this Screen:
Access Token for Microsoft Cognitive Services
Function of this Screen:
Configure an access token to connect to Microsoft Cognitive Services.
Example:
Refer to:

Map Request to AgilePoint Schema

Function:
Connects the Microsoft Cognitive Services request to your schema. This is necessary only if the request passes data from the process schema to parameters in Cognitive Services.
To Open this Field:
  1. Click the Request tab.
Accepted Values:
Click the Schema Mapping Schema Mapping icon button to open the Schema Mapper.

Use this screen to connect the request to the data model for your process.

Default Value:
None
Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation, and it is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business uses cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, and other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?

Key Phrase Extraction Configuration > Response tab

Configures the response settings to get the key phrases from the analyzed text.

Figure: Key Phrase Extraction Configuration > Response tab

Key Phrase Extraction Configuration Response tab

Fields

Field Name Definition

Cognitive Services

Function:
Specifies the access token that connects to your Microsoft Cognitive Services.
Accepted Values:
A list of access tokens configured for your environment.

The selected access token must have the Cognitive Service Type configured for Computer Vision API.

Default Value:
None
Example:
Refer to:

Add Token Add Token icon

Opens this Screen:
Access Token for Microsoft Cognitive Services
Function of this Screen:
Configure an access token to connect to Microsoft Cognitive Services.
Example:
Refer to:

Map Response to AgilePoint Schema

Function:
Specifies the connection from the Microsoft Cognitive Services API response parameter to your schema.
Accepted Values:
Click the Schema Mapping Schema Mapping icon button to open the Schema Mapper.

Use this screen to connect the response to the data model for your process.

Default Value:
None
Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation, and it is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business uses cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, and other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?

Store the Response in Custom Attribute

Function:
Specifies the process data variable that stores the responses from the Microsoft Key Phrase Extraction service.
Accepted Values:
A process data variable that accepts a text string in JSON format that contains a list of extracted phrases.
Default Value:
None
Accepts Process Data Variables:
Yes
Example:

[{"Documents":[{"Id":"3da0e08e-7d73-48ae-8c34-b27d2478ee5e","KeyPhrases":["trail","small children","family"]}],"Errors":[]}]