How to show confidence level from classifier

I just thought I’d share this, because it wasn’t immeditately obivious.

When a doc goes through Classify Document Scope, the output is variable which “classificationResult” ( or whichever name you chose to call it ).

The classificationResult is of the variable type ClassificationResult and this is an array because each page in a doc will be classified differently ( this allows for documents that contain many documents within ).

So let’s say your document has one page … then the page will be in the first place in the array ( the zero’th place ). So write it like this :

classificationResult(0).Confidence

And to put it into a string, just do this.
classificationResult(0).Confidence.ToString

Hope that helps

2 Likes