This paper proposes a novel technique for generating object-oriented computer program automatically from natural language text input containing a mathematical word problem (MWP) to produce the final answer. The system identifies all the entities like owners, items, cardinal values from the MWP texts and the arithmetic operations by understanding the verb semantics. Successively, it generates a complete object oriented program using JAVA language. The proposed system can solve addition-subtraction type MWPs and produced an accuracy of 90.48% on a subset of the AI2 Arithmetic Questions (http://allenai.org/ data.html) dataset.
展开▼