1. A system for recognizing mathematical expressions, the system comprising: a pre-processing module operable to receive an image and obtain one or more candidate regions from the image; a feature extracting module operatively connected to the pre-processing module, the feature extracting module being operable to extract features of each of the candidate regions; an encoding module operatively connected to the feature extracting module, the encoding module being operable to encode the features into a distributive representation for each of the candidate regions separately; a decoding module operatively connected to the encoding module, the decoding module being operable to decode the distributive representation for each of the candidate regions into one or more output representations; and a post-processing module connected to the decoding module, the post-processing module being operable to combine the one or more output representations into an output expression in a computer-readable format.