PreVerifierTrain
The PreVerifierTrain event is added to control SLW training in Verifier, Learnset Manager, and Designer.
This event triggers when a program starts learning for a document in the Supervised Learning Workflow (SLW).
Syntax
Document_PreVerifierTrain(pWorkdoc as SCBCdrPROJLib.SCBCdrWorkdoc, pMode as Long)
Parameter | Description |
---|---|
pWorkdoc | The current workdoc |
pMode | Reserved for future use, should not be used in the current version. |
Sample Code
The following script example demonstrates how the new script event can be used to apply a substitution of the primary Associative Search Engine field with another result referring to a different pool.
Private Sub Document_PreVerifierTrain(pWorkdoc as SCBCdrPROJLib.SCBCdrWorkdoc, pMode as Long)
If pWorkdoc.DocClassName = "NotGoodForPrimaryASEField" Then
Project.AllClasses.ItemByName("Invoices").ClassificationField = "SecondaryAseField"
End If
End Sub