IDOL Server 12.12

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

## Required Parameters

The following action parameters are required.

Parameter | Description
--- | ---
ClassifierName | The name of the classifier to update with the new classes.
ClassName | The name of the class to add.

## Optional Parameters

This action accepts the following optional parameters.

Parameter | Description
--- | ---
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.

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.12 | Last updated June 2022

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 swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Server 12.12

Topic Title: ClassifierAddClass