Is there a way to control document skills assignment based on the class confidence?

Question

Scenario: there are 2 vendors - Vendor 1 and Vendor 2. it's required to classify invoices to detect whether it is one of those vendors and apply the corresponding document skill. For invoices that were classified as Vendor 1 and Vendor with low confidence, the general Invoice ANZ document skill is to be matched. How it can be achieved?

 

Answer

In the Process Skill > If activity add script conditions defining the confidence threshold, i.e. :

for (var i = 0; i < Context.Transaction.Documents[0].ClassConfidences.length; i++) 
{ 
    Context.Transaction.Documents[0].ClassConfidences[i].Class == "Vendor 1"  && Context.Transaction.Documents[0].ClassConfidences[i].Confidence > 70; 
}

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.