Mixing Neural Networks and Contextual Analysis in a High-Speed Handwriting Recognizer