ClsEngineResult
This property sets or returns a classification result matrix. This matrix is used during the classification step to store the results of each used classification method for each document class (DocClass) of the project. The matrix has one column for each classification method and one column for the combined result of all methods. A row contains the results for a single DocClass, therefore there is one row for each DocClass in the classification matrix. The matrix is created during the classification step, but not saved to disk. After reloading the workdoc, the matrix is no longer available.
The method returns the classification matrix as CDRClassifyResult.
Syntax
ClsEngineResult (MethodIndex as Long, DocClassIndex as Long) as CDRClassifyResult
Parameter | Description |
---|---|
MethodIndex | MethodIndex = 0 can be used to access the voted result of all classification methods. A MethodIndex of 1 - n can be used to access the results of the single classification methods. The sorting of the classification methods within the array is determined by the collection of classification settings of the Brainware Intelligent Capture project. You can access this collection from the script as Project.ClassifySettings, which has a type of SCBCroCollection. Use the Count property to get the number of used classification engines or use the ItemIndex / ItemName property to find the index of classification method or the name for an index. |
DocClassIndex | The DocClassIndex is determined by the collection of all DocClasses. You can access this collection from the script as Project.AllClasses, which has a type of SCBCroCollection. Use the Count property to get the number of DocClasses or use the ItemIndex / ItemName property to find the index of DocClass or the name for an index. |
Sample Code
The following sample code sets the classification result of the Brainware Classify Engine to YES for a document in doclass "VOID". If Brainware Classify is the only engine or all other classes would be CDRClassifyNo, the document gets classified as VOID.
pWorkdoc.ClsEngineResult(Project.ClassifySettings.ItemIndex("Brainware Classify Engine"), Project.AllClasses.ItemIndex("VOID"))= CDRClassifyYes