TrainCategory

Provided in: idol-nifi-core-nar (see Install NiFi Ingest).

The TrainCategory processor makes requests to a Category component, to train one or more categories. The processor uses the text content of incoming documents to train categories (document metadata is ignored).

The TrainCategory processor has an advanced configuration interface that you can use to:

  • list, add, and modify categories, and create taxonomies (nested sets of categories)

  • categorize text, for testing purposes

The advanced configuration training interface is the same as for the CategorizeDocument processor. For details of the user interace and how to add, modify, and test categories, see CategorizeDocument.

After training categories, you can categorize documents by using the CategorizeDocument processor.

For more information about categorization, refer to the Knowledge Discovery Administration Guide.

Properties

Name Default Value Description
IDOL License Service  

An IdolLicenseServiceImpl that provides a way to communicate with a Knowledge Discovery License Server.

Category Host   The host name or IP address of the Category component.
Category Port   The Category component ACI port.
Request Timeout 60 The maximum amount of time to wait, in seconds, for a response from the Category component.
SSL Config Service   An optional IdolSSLConfigServiceImpl that specifies the settings to use to communicate with the Category component over SSL/TLS. Set this property if your Category component has been configured to accept connections over SSL.
Category Name  

The name of the category that you want to train. You can specify either:

  • a single, fixed, category name.
  • a dynamic value, by using NiFi expression language to produce a value based on the incoming FlowFile. For example, you could specify ${"idol.category"} to select the value of the idol.category FlowFile attribute.

The processor automatically creates any categories that do not exist.

Batch Size 100 The maximum number of documents to batch into a single training request.

Relationships

Name Description
success FlowFiles that were processed successfully.
failure FlowFiles that were not processed successfully.