Question & answering system based on retrieval
Abstract
The principle of the question and answering system is nowadays one big branch of natural language processing. When a user enters a query, the system should find the question that is most similar to the entered question stored in the datasets. Then directly return the answer corresponding to the found question. Two models are implemented to better calculate the similarity between entered questions and questions in the corpus: TF-IDF and Word2Vec. After one hundred experiments to test the accuracy of these two models, the result shows that the Word2Vec has 81% accuracy and TF-IDF has only 49% accuracy. It is concluded that Word2Vec has a better accurate performance than TF-IDF. There is also an optimized storage method by using the inverted list for the corpus to improve the model’s efficiency.
References
- Nadkarni PM, Ohno-Machado L, and Chapman WW. (2011). Natural language processing: an introduction. (J Am Med Inform Assoc).
- Przybyła P, and Soto A. (2021). When classification accuracy is not enough: Explaining news credibility assessment. Information Processing & Management, Volume 58, Issue 5, Article 102653, ISSN 0306-4573.
- Gomes J, de Mello RC, Ströele V, and de Souza JF. (2022). A study of approaches to answering complex questions over knowledge bases. (Knowl Inf Syst).
- Mendes A, and Coheur L. (2013). When the answer comes into question in question-answering: Survey and open issues. Natural Language Engineering, Volume 19, Issue 1, Page 1-32, ISSN 1351-3249.
- Pennington J, Socher R, and Manning C. (2014). GloVe: Global Vectors for Word Representation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Page 1532–1543. (Association for Computational Linguistics).
- Kim D, Seo D, Cho S, and Kang P. (2019). Multi-co-training for document classification using various document representations: TF–IDF, LDA, and Doc2Vec. Information Sciences, Volume 477, Page 15–29, ISSN 0020-0255.
- Mohammed M, and Omar N. (2019). Question classification based on Bloom’s taxonomy cognitive domain using modified TF-IDF and word2vec. PloS One, Volume 15, Issue 3, e0230442.
- Arroyo-Fernández I, Méndez-Cruz C-F, Sierra G, Torres-Moreno J-M, and Sidorov G. (2019). Unsupervised sentence representations as word information series: Revisiting TF–IDF. Computer Speech & Language, Volume 56, Page 107–129, ISSN 0885-2308.
- Lestrade S. (2017). Unzipping Zipf’s law. PloS One, Volume 12, Issue 8, e0181987.
- Moreno-Sánchez I, Font-Clos F, and Corral Á. (2016). Large-scale analysis of Zipf’s law in English texts. PloS One, Volume 11, Issue 1, e0147073.
- Mikolov T, Chen, K, Corrado G, Dean J. (2013). Efficient Estimation of Word Representations in Vector Space. (ArXiv).
- Church K. (2017). Word2Vec. Natural Language Engineering, Volume 23, Issue 1, Page 155-162, ISSN 1351-3249.
- Goldberg Y, and Levy O. (2014). word2vec Explained: deriving Mikolov et al.’s negative-sampling word-embedding method. (ArXiv).
- Rong X. (2014). word2vec Parameter Learning Explained. (ArXiv).