> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ClassificationTrainingDocument Object (IClassificationTrainingDocument Interface)

This object can be obtained from a [**Document**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/document.md) object and used to represent it for classifier training.

## Properties

| **Name** | **Type** | **Description** |
| - | - | - |
| **AsDocument** | [**Document**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/document.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | Gets the initial document. |
| **ClassificationTrainingPages** | [**ClassificationTrainingPages**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/classificationtrainingpages.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | Returns the collection of the pages for training. |
| **TrainingState** | [**DocumentTrainingStateEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documenttrainingstateenum.md) | Sets the document training state, that is, whether it is used for training or for testing (or not used at all). |

## Methods

| **Name** | **Description** |
| - | - |
| [**Close**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/classificationtrainingdocument-close.md) | Closes the document for classification training. |
| [**Open**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/classificationtrainingdocument-open.md) | Opens the document for classification training. |

## Related objects

![](https://mintcdn.com/abbyy/89WLEbAVqQ-ysQEU/images/flexi-capture/sdk/ClassificationTrainingDocument.gif?s=8f5572c684a7c344156a014ddf9a4f9c)

## Samples

This object is used in the following code samples: [Classification](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#classification).

## See also

[Working with Properties](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md)
