Methods and systems for document image decoding incorporating a Stack
algorithm improve document image decoding. The application of the Stack
algorithm is iterated to improve decoding. A provisional weight is
determined for a partial path to reduce template matching. In addition,
semantically equivalent hypotheses are identified to reduce redundant
hypotheses.