Acoustic and Word Lattice Based Algorithms for Confidence Scores