# Intelligent Keyword Classifier Trainer

> `UiPath.IntelligentOCR.Activities.DocumentClassification.IntelligentKeywordClassifierTrainer`

`UiPath.IntelligentOCR.Activities.DocumentClassification.IntelligentKeywordClassifierTrainer`

## Description

This activity trains the learning data added as variables. The used keywords can be defined by the user or vector learned.

The **Intelligent Keyword Classifier Trainer** enhances the training set used for classification, by writing learning data in a specified file.

Can be used only together with the [Train Classifiers Scope](https://docs.uipath.com/activities/other/latest/document-understanding/train-classifiers-scope) activity.

## Project compatibility

**Windows-Legacy | Windows**

## Configuration

#### Designer panel

* **LearningFilePath** - The full path to the file containing the classifier data. This field supports only strings and `String` variables.

#### Properties panel

**Common**
* **DisplayName** - The display name of the activity.

**Input**
* **LearningFilePath** - The full path to the file containing the classifier data. This field supports only strings and `String` variables.

**Input/Output**
* **LearningData** - The string containing the serialized classifier data. This field supports only strings and `String` variables.
  :::note
  Only one of the above options can be set at a time. You can use either the **LearningData** string or the **LearningFilePath** string.

  The **LearningFilePath** specifies the locations from where to retrieve the classifier data.

  The **LearningData** contains the actual information of that classifier.
  :::

**Misc**
* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.
  :::note
  The best practice is to create an **empty** `.json` file at that location, then use its name in the **LearningFilePath** field.
  :::

## Learn More

A wizard is available for this activity, helping you to configure and manage the keywords used for this activity. Visit [Intelligent Keyword Classifier](https://docs.uipath.com/activities/other/latest/document-understanding/intelligent-keyword-classifier) to learn how to set up a wizard.
