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

# TrainingData Object (ITrainingData Interface)

> TrainingData object (ITrainingData interface) in the ABBYY FineReader Engine API — a categorized data set used as input for training a classifier.

This object is a categorized set of data which can be used to train the classifier. Use the methods of its [Categories](/fine-reader/engine/api-reference/classification-related-objects/categories) subobject to add and manage classification objects corresponding to different category labels. At least two of the categories need to contain some classification objects for the training method to return without errors.

## Properties

| Name       | Type                                                                                                                                                                                                                        | Description                 |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |
| Categories | [Categories](/fine-reader/engine/api-reference/classification-related-objects/categories), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties) | The categories of the data. |

## Methods

| Name                                                                                                    | Description                                       |
| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| [LoadFromFile](/fine-reader/engine/api-reference/supplementary-objects-and-methods/loadfromfile-method) | Restores the object contents from a file on disk. |
| [SaveToFile](/fine-reader/engine/api-reference/supplementary-objects-and-methods/savetofile-method)     | Saves the object contents into a file on disk.    |

## Input parameter

This object is passed as an input parameter to the [TrainModel](/fine-reader/engine/api-reference/classification-related-objects/trainer/trainmodel-method) method of the [Trainer](/fine-reader/engine/api-reference/classification-related-objects/trainer) object.

## Output parameter

This object is the output parameter of the [CreateTrainingData](/fine-reader/engine/api-reference/classification-related-objects/classificationengine/createtrainingdata-method) method of the [ClassificationEngine](/fine-reader/engine/api-reference/classification-related-objects/classificationengine) object.

## Related objects

<img src="https://mintcdn.com/abbyy/i-EfCQVmseNiPQcp/images/fine-reader/engine/trainingdata.gif?s=0860722fe456bc9d875d56ac421a2d2a" alt="TrainingData" width="193" height="167" data-path="images/fine-reader/engine/trainingdata.gif" />[](/fine-reader/engine/api-reference/classification-related-objects/category#objects)[](/fine-reader/engine/api-reference/classification-related-objects/classificationobject)[](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/element-property)[](/fine-reader/engine/api-reference/classification-related-objects/classificationobjects)[](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/element-property)[](/fine-reader/engine/api-reference/classification-related-objects/category)[](/fine-reader/engine/api-reference/classification-related-objects/categories)

[Object Diagram](/fine-reader/engine/api-reference/object-diagram)

## Samples

This object is used in the [Classification](/fine-reader/engine/guided-tour/samples#classification) demo tool in Windows and the [Classification](/fine-reader/engine/guided-tour/samples#classification_unix) code sample in Linux and macOS.

## See also

[Document Classification](/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/document-classification)
