Open topic with navigation

# 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, IDOL Server 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:9000/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.
EncryptResponse | Encrypt the output.
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.

© 2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm