Using a neural network for optical character recognition