IDOL Proxy Component 12.13

# View and Administer Classifiers

After you have set up classification, you can list and view classifiers, retrain classes, and delete classes and classifiers.

## List and View Classifiers

The `ClassifierList` and `ClassifierGetInfo` actions allow you to view information about the classifiers you have created. `ClassifierList` returns information for all classifiers, and `ClassifierGetInfo` returns information for a single classifier that you specify. Both actions return the number of classes in the classifier, the feature fields that the classifier uses, and whether the classifier has been trained.

For example:

    action=ClassifierList

This action returns the names of all your classifiers, and the information for each classifier.

    action=ClassifierGetInfo&ClassifierName=food

This action returns information for the `food` classifier.

## Retrain a Class

You can change the training documents associated with a class in a classifier by using the `ClassifierSetClassTraining` action. This action overwrites any existing training for the class with the new training. After you retrain a class, you must retrain the classifier.

To retrain a classifier

1. Send the `ClassifierSetClassTraining` action with the following parameters:

   - `ClassifierName` set to the name of the classifier.
   - `ClassName` set to the name of the class to retrain.
   - `StateID` set to a state token that lists the documents that you want to use to train the class.

   For example:

       action=ClassifierSetClassTraining&ClassifierName=food&ClassName=vegetarian&StateID=G7KPID13APWM-15

   This action updates the training for the `vegetarian` class in the `food` classifier to use the documents listed in the state token `G7KPID13APWM-15`.

2. Send a `ClassifierTrain` action to IDOL Category component, with the `ClassifierName` parameter set to the name of the classifier.

   For example:

       action=ClassifierTrain&ClassifierName=food

   This action trains the `food` classifier, and updates the training for the retrained classes.

## Delete a Class

You can delete a class from a classifier by using the `ClassifierDeleteClass` action. After you send this action, Category automatically retrains the classifier.

For example:

    action=ClassifierDeleteClass&ClassifierName=food&ClassName=vegetarian

This action deletes the `vegetarian` class from the `food` classifier and retrains the classifier.

## Delete a Classifier

You can delete a classifier that you no longer need by using the `ClassifierDelete` action. This action deletes the classifier and all associated classes.

For example:

    action=ClassifierDelete&ClassifierName=food

This action deletes the `food` classifier.

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.13 | Last updated October 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 IDOL Proxy Component 12.13

Topic Title: View and Administer Classifiers