Classify Method of the Model Object

Uses the model to classify a given classification object. As the result of this method call, you will receive a collection of pairs "category label — probability," and will then be able to select the most likely category for the document or page from which the classification object was created.

Note: Model training and classification will be performed in sequential mode, regardless of the IMultiProcessingParams::MultiProcessingMode value.

Syntax

C++

HRESULT Classify(
  IClassificationObject*   Object,
  IClassificationResults** Result
);
    

C#

IClassificationResults Classify( IClassificationObject Document );
    

Visual Basic .NET

Function Classify(Document As IClassificationObject) As IClassificationResults
    

Parameters

Object
[in] A ClassificationObject which needs to be classified. Note that if the classification object was created from a document or page which had not been previously recognized, you will not be able to classify it with the help of a classifier which uses the text features. You can check that the object's SuitableClassifiers property contains the classifier specified in IModel::ClassifierType.
Result
[out, retval] A pointer to the IClassificationResults* pointer variable that receives the interface pointer of the output ClassificationResults object. The classification results are sorted by probability in descending order. May be null if the classifier could not assign the classification object to any of the categories.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also

Model

24.03.2023 8:51:52

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.