Bi-directional lattice recurrent neural networks for confidence estimation