Complimentary OCR package

I need help to implement the "OCR Complimentary Tools " feature.Currently the output i’m getting from OCR isn’t enough.

  1. Majority Decision
    a) CandidateStringList, Majority, RMSEArray : how to generate these and use in my WF

  2. Sort By Distance
    a) TargetText, SortedNormalizedEditDistanceArray, SortedTextArray : how to generate these and use in my WF

Could you please elaborate how to implement the above with a sample WF.