CookingQA: A Question Answering System Based on Cooking Ontology

  • Riyanka Manna
  • Partha Pakray
  • Somnath Banerjee
  • Dipankar Das
  • Alexander GelbukhEmail author
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 10061)


We present an approach to develop a Question Answering (QA) system over cooking recipes that makes use of Cooking Ontology management. QA systems are designed to satisfy the user’s specific information need whereas ontology is the conceptualization of knowledge and it exhibits the hierarchical structure. The system is an Information retrieval (IR) based system where the various tasks to be handled like question classification, answer pattern recognition, indexing, final answer generation. Our proposed QA System use Apache Lucene for document retrieval. All cooking related documents are indexed using Apache Lucene. Stop words are removed from each cooking related question and formed the query words which are identified to retrieve the most relevant document using Lucene. Relevant paragraphs are selected from the retrieved documents based on the tf-idf of the matching query words along with n-gram overlap of the paragraph with the original question. This paper also presents a way to develop an ontology model in such a way that the queries can be processed with the help of the ontology knowledge base and generate the exact answer.


  1. 1.
    Gruber, T.: A translation approach to portable ontology specifications. Knowl. Acquis. 5(2), 199–220 (1993)CrossRefGoogle Scholar
  2. 2.
    Ismail, M.A., Yaacob, M., Kareem, S.A.: Ontology Construction: An Overview. National Convention of Educational Technology, 9th–11th September (2006)Google Scholar
  3. 3.
    Xianfeng, Y.: Question recommendation and answer extraction in question answering community. Int. J. Database Theor. Appl. 9(1), 35–44 (2016)CrossRefGoogle Scholar
  4. 4.
    Schwarzer, M., et al.: An Interactive e-Government Question Answering System (2016)Google Scholar
  5. 5.
    Roth, D., et al.: Learning Components for A Question-Answering System. In: TREC (2001)Google Scholar
  6. 6.
    Savenkov, D., Eugene, A.: When a knowledge base is not enough: question answering over knowledge bases with external text data. In: Proceedings of the 39th International ACM SIGIR Conference on Research and Development in Information Retrieval. ACM (2016)Google Scholar
  7. 7.
    Batista, F., Pardal, J.P., Mamede, P.V.N., Ribeiro, R.: Ontology construction: cooking domain. Artif. Intell. Methodol. Appl. 41, 1–30 (2006)Google Scholar
  8. 8.
    Snae, C., Bruckner, M.: FOODS: a food-oriented ontology-driven system. In: 2nd IEEE International Conference on Digital Ecosystems and Technologies, DEST 2008, pp. 168–176. IEEE, February 2008Google Scholar
  9. 9.
    Sam, M., Krisnadhi, A.A., Wang, C., Gallagher, J., Hitzler, P.: An ontology design pattern for cooking recipes: classroom created. In: Proceedings of the 5th International Conference on Ontology and Semantic Web Patterns, vol. 1302, pp. 49–60. CEUR-WS. org (2014)Google Scholar
  10. 10.
    Delpech, E.: Investigating the structure of procedural texts for answering how-to questions. In: Language Resources and Evaluation Conference, LREC 2008, p. 544, May 2008Google Scholar
  11. 11.
    Fontan, L., Saint-Dizier, P.: Analyzing the explanation structure of procedural texts: Dealing with advice and warnings. In: Proceedings of the 2008 Conference on Semantics in Text Processing, pp. 115–127. Association for Computational Linguistics, September 2008Google Scholar
  12. 12.
    Banerjee, S., Bandyopadhyay, S.: Question classification and answering from procedural text in English. In: 24th International Conference on Computational Linguistics, p. 11 (2012)Google Scholar
  13. 13.
    Serhatli, M., Alpaslan, F.N.: An ontology based question answering system on software test document domain. World Acad. Sci. Eng. Technol. 54(09) (2009)Google Scholar
  14. 14.
    Hovy, E., Hermjakob, U., Ravichandran, D.: A question/answer typology with surface text patterns. In: Proceedings of the Second International Conference on Human Language Technology Research, pp. 247–251. Morgan Kaufmann Publishers Inc., March 2002Google Scholar
  15. 15.
    Li, X., Roth, D.: Learning question classifiers: the role of semantic information. Nat. Lang. Eng. 12(03), 229–249 (2006)CrossRefGoogle Scholar
  16. 16.
    Zhang, D., Lee, W.S.: Question classification using support vector machines. In: Proceedings of the 26th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 26–32. ACM, July 2003Google Scholar
  17. 17.
    Silva, J., Coheur, L., Mendes, A.C., Wichert, A.: From symbolic to sub-symbolic information in question classification. Artif. Intell. Rev. 35(2), 137–154 (2011)CrossRefGoogle Scholar
  18. 18.
    Huang, Z., Thint, M., Qin, Z.: Question classification using head words and their hypernyms. In: Proceedings of the Conference on Empirical Methods in Natural Language Processing, pp. 927–936. Association for Computational Linguistics, October 2008Google Scholar
  19. 19.
    Aouladomar, F., Saint-Dizier, P.: An exploration of the diversity of natural argumentation in instructional Texts. In: 5th International Workshop on Computational Models of Natural Argument, IJCAI, Edinburgh, (2005)Google Scholar
  20. 20.
    Aouladomar, F.: Towards answering procedural questions. In: Proceedings of IJCAI Workshop on Knowledge and Reasoning for Answering Questions, pp. 21–31 (2005)Google Scholar
  21. 21.
    De Rijke, M.: Question answering: what’s next? In: Sixth International Workshop on Computational Semantics, Tilburg (2005)Google Scholar
  22. 22.
    Yin, L.: Topic analysis and answering procedural questions, Information Technology Research Institute Technical Report Series, ITRI-04-14, University of Brighton, UK (2004)Google Scholar

Copyright information

© Springer International Publishing AG 2017

Authors and Affiliations

  • Riyanka Manna
    • 1
  • Partha Pakray
    • 2
  • Somnath Banerjee
    • 1
  • Dipankar Das
    • 1
  • Alexander Gelbukh
    • 3
    Email author
  1. 1.Department of Computer Science and EngineeringJadavpur UniversityKolkataIndia
  2. 2.Department of Computer Science and EngineeringNational Institute of Technology MizoramAizawlIndia
  3. 3.Centro de Investigación en Computación (CIC)Instituto Politécnico Nacional (IPN)Mexico CityMexico

Personalised recommendations