Skip to main content

A Simple Arithmetic Calculator to Solve Single Sentence Mathematical Word Problems

  • Conference paper
  • First Online:
Recent Advances in Intelligent Information Systems and Applied Mathematics (ICITAM 2019)

Part of the book series: Studies in Computational Intelligence ((SCI,volume 863))

  • 589 Accesses

Abstract

In the recent past, solving mathematical word problems of varying complexities has gained popularity among researchers, for which Natural Language Processing (NLP) and Understanding (NLU) techniques, Machine Learning, Deep learning and several artificial intelligence (AI) based approaches are widely used. The paper presents a work aiming to solve single-sentence mathematical or arithmetic word problems or queries given in natural language (English). The work involves identification of problem types, simplification of the given word problem to extract the operators and the operands, mapping the operators to appropriate operands to create the mathematical expression and solve the query to generate the final result. We developed a dataset consisting of 430 diverse arithmetic word problems of different complexity levels. Our natural language calculator was evaluated on this dataset and it resulted in 86.28% accuracy.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 219.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    http://www.googleguide.com/help/calculator.html.

  2. 2.

    http://www.softwarepreservation.org/projects/LISP/book/LISP%201.5%20Programmers%20Manual.pdf.

  3. 3.

    Available at: https://drive.google.com/file/d/1eiYRWRhguH82BwiMkOsTfPBQxr4-ZpWG/view?usp=sharing.

  4. 4.

    In India, the word ‘into’ is used to refer to the multiplication operation.

References

  1. Aho, A.V., Hopcroft, J.E., Ullman, J.D.: Data Structures and Algorithms. Addison Wesley, Amsterdam (1983)

    MATH  Google Scholar 

  2. Bakman, Y.: Robust understanding of word problems with extraneous information. arXiv preprint arXiv:math/0701393 (2007)

  3. Bobrow, D.G.: Natural language input for a computer problem solving system (1964)

    Google Scholar 

  4. Briars, D.J., Larkin, J.H.: An integrated model of skill in solving elementary word problems. Cogn. Instr. 1(3), 245–296 (1984)

    Article  Google Scholar 

  5. Dellarosa, D.: A computer simulation of children’s arithmetic word-problem solving. Behav. Res. Meth. Instrum. Comput. 18(2), 147–154 (1986)

    Article  Google Scholar 

  6. Fletcher, C.R.: Understanding and solving arithmetic word problems: a computer simulation. Behav. Res. Meth. 17(5), 565–571 (1985)

    Article  Google Scholar 

  7. Hosseini, M.J., Hajishirzi, H., Etzioni, O., Kushman, N.: Learning to solve arithmetic word problems with verb categorization. In: Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing, EMNLP 2014, A Meeting of SIGDAT, a Special Interest Group of the ACL, Doha Qatar, 25–29 October 2014, pp. 523–533 (2014). http://aclweb.org/anthology/D/D14/D14-1058.pdf

  8. Kintsch, W., Greeno, J.G.: Understanding and solving word arithmetic problems. Psychol. Rev. 92(1), 109 (1985)

    Article  Google Scholar 

  9. Koncel-Kedziorski, R., Hajishirzi, H., Sabharwal, A., Etzioni, O., Ang, S.D.: Parsing algebraic word problems into equations. TACL 3, 585–597 (2015). https://tacl2013.cs.columbia.edu/ojs/index.php/tacl/article/view/692

    Google Scholar 

  10. Kushman, N., Zettlemoyer, L., Barzilay, R., Artzi, Y.: Learning to automatically solve algebra word problems. In: Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics, ACL 2014, Baltimore, MD, USA, 22–27 June 2014, Volume 1: Long Papers, pp. 271–281 (2014)

    Google Scholar 

  11. Liang, C., Tsai, S., Chang, T., Lin, Y., Su, K.: A meaning-based English math word problem solver with understanding, reasoning and explanation. In: COLING 2016, 26th International Conference on Computational Linguistics, Proceedings of the Conference System Demonstrations, Osaka, Japan, 11–16 December 2016, pp. 151–155 (2016). http://aclweb.org/anthology/C/C16/C16-2032.pdf

  12. Mandal, S., Naskar, S.K.: Towards generating object-oriented programs automatically from natural language texts for solving mathematical word problems. In: Natural Language Processing and Information Systems - Proceedings of the 22nd International Conference on Applications of Natural Language to Information Systems, NLDB 2017, Liège, Belgium, 21–23 June 2017, pp. 222–226 (2017). https://doi.org/10.1007/978-3-319-59569-6_26

    Chapter  Google Scholar 

  13. Mandal, S., Naskar, S.K.: Solving arithmetic mathematical word problems: a review and recent advancements. In: Information Technology and Applied Mathematics: ICITAM 2017, vol. 699, p. 95 (2018)

    Google Scholar 

  14. Mukherjee, A., Garain, U.: A review of methods for automatic understanding of natural language mathematical problems. Artif. Intell. Rev. 29(2), 93–122 (2008). https://doi.org/10.1007/s10462-009-9110-0

    Article  Google Scholar 

  15. Riley, M.S., et al.: Development of children’s problem-solving ability in arithmetic (1984)

    Google Scholar 

  16. Roy, S., Roth, D.: Solving general arithmetic word problems. In: Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, EMNLP 2015, Lisbon, Portugal, 17–21 September 2015, pp. 1743–1752 (2015). http://aclweb.org/anthology/D/D15/D15-1202.pdf

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sourav Mandal .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Bhattacharjee, D., Hariom, Mandal, S., Naskar, S.K. (2020). A Simple Arithmetic Calculator to Solve Single Sentence Mathematical Word Problems. In: Castillo, O., Jana, D., Giri, D., Ahmed, A. (eds) Recent Advances in Intelligent Information Systems and Applied Mathematics. ICITAM 2019. Studies in Computational Intelligence, vol 863. Springer, Cham. https://doi.org/10.1007/978-3-030-34152-7_39

Download citation

Publish with us

Policies and ethics