# ClassifierCreate

Create a classifier to use to classify documents.

Classifiers allow you to categorize documents by using the random forest algorithm. Each classifier defines a set of classes, which you must create and train with relevant data. You can then use the classifier to assign documents to the most relevant class.

When you send the `ClassifierCreate` action, you must set ClassifierName to a unique name for the new classifier, and set ClassifierType to the type of classifier (`RandomForest`). You must also set the FeatureFields parameter to a comma-separated list of fields from your training documents that contain the text that you want to use to classify your documents.

After you create the classifier, you must create and train classes by using the ClassifierAddClass action. You then train and build the classifier by using the ClassifierTrain action. After you have trained the classifier, you can use the ClassifierQuery action to classify documents.

## Example

    http://12.3.4.56:9020/action=ClassifierCreate&ClassifierType=RandomForest&ClassifierName=food&FeatureFields=ingredient,flavor,accompaniments,meal

This action creates a random forest classifier with the name `food`. The classifier uses features in the `ingredient`, `flavor`, `accompaniments`, and `meal` fields to classify documents.

## Required Parameters

The following action parameters are required.

Parameter | Description
--- | ---
ClassifierName | The name of the classifier to create.
ClassifierType | The type of classifier to create.
FeatureFields | The document fields to use as features in the classifier.

## 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.

© Copyright 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm