Reclassify if classification result has a specific value
This example shows how to reclassify the current document to a different class by setting the confidence to 1. The confidence parameter is optional and set to 0 if it is not specified. To detect endless loops caused by scripting, the use of the reclassify method is limited to once per classification step and to 100 times per extraction step. The example is using the classification step, but also extraction data could be used to redirect a document to a different class.
' Project Script
Private Sub Document_AfterClassifyXDoc(pXDoc As CASCADELib.CscXDocument)
If pXDoc.ExtractionClass = "ClassA" Then
pXDoc.Reclassify("ClassB", 1.0)
End If
End Sub