Mixing neural networks and contextual analysis in a high-speed handwriting recognizer