8. A method for recognizing mathematical expressions, the method comprising: receiving an image by a pre-processing module; obtaining one or more candidate regions from the image by the pre-processing module; extracting features of each of the candidate regions by a feature extracting module includes applying a CNN, wherein the extracting of the features from each of the candidate regions includes sliding a window along each of the candidate regions such that the features are obtained from a plurality of positions of the window; encoding, by an encoding module, the features into a distributive representation for each of the candidate regions separately; decoding the distributive representation for each of the candidate regions into one or snore output representations by a decoding module; and combining, a post-processing module, the one or more output representations into an output expression being in a computer-readable format.
8. A method for recognizing mathematical expressions, the method comprising: receiving an image by a pre-processing module; obtaining one or more candidate regions from the image by the pre-processing module; extracting features of each of the candidate regions by a feature extracting module includes applying a CNN, wherein the extracting of the features from each of the candidate regions includes sliding a window along each of the candidate regions such that the features are obtained from a plurality of positions of the window; encoding, by an encoding module, the features into a distributive representation for each of the candidate regions separately; decoding the distributive representation for each of the candidate regions into one or snore output representations by a decoding module; and combining, a post-processing module, the one or more output representations into an output expression being in a computer-readable format. 14. The method of claim 8 , wherein each of the output representations refers to a character or a symbol, and wherein the output expression refers to a mathematical expression or a chemical formula provided in a markup language.