Open topic with navigation

# ClassifierAddClass

Create a class in a specified classifier.

A class represents one of the categories that you want to use to classify documents. For example, if you have a food classifier, you might have classes for vegetable, fruit, and meat.

When you create a class, you must set ClassifierName to the name of the classifier that you want to add the class to. You must also set ClassName to the name of the class that you want to add. You can optionally set StateID to specify a query state token that defines training documents for the class. Alternatively, you can train the class later by using the ClassifierSetClassTraining action.

## Example

    http://12.3.4.56:9000/action=ClassifierAddClass&ClassifierName=food&ClassName=vegetable

This action creates a `vegetable` class in the classifier with the name `food`.

## Parameters

Parameter | Description | Required
--- | --- | ---
ClassifierName | The name of the classifier to update with the new classes. | Yes
ClassName | The name of the class to add. | Yes
StateID | A state token that defines the documents that you want to use to train the new class. |

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.

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! 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 AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm