Category Component 25.2
Category Component Help

# ClassifierTrain

Train a classifier.

After you have created a classifier, and trained the classes that you want to define, use the `ClassifierTrain` action to train and build the classifier. You must set ClassifierName to the name of the classifier that you want to train.

NOTE: To train a classifier, the classifier must have classes, all of which must have training defined.

In addition, the `ClassifierTrain` action returns an error if none of the training documents contain features (for example, because none of the documents contain the specified classifier FeatureFields).

When you run this action, the Category component retrieves the training documents and extracts information from the classifier FeatureFields. It uses these features to train each of the classes in the classifier.

After you have trained the classifier, you can use the ClassifierQuery action to classify documents.

## Example

    http://12.3.4.56:9020/action=ClassifierTrain&ClassifierName=food

This action trains the `food` classifier.

## Required Parameters

The following action parameters are required.

Parameter | Description
--- | ---
ClassifierName | The name of the classifier to train.

## Optional Parameters

This action accepts the following standard ACI action parameters.

Parameter | Description
--- | ---
ActionID | A string to use to identify an ACI action.
FileName | The file to write output to.
ForceTemplateRefresh | Forces the server to load the template from disk.
Output | Writes output to a file.
ResponseFormat | The format of the action output.
Template | The template to use for the action output.
TemplateParamCSVs | A list of variables to use for the specified template.

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Category Component 25.2

Topic Title: ClassifierTrain