Answering Reading Comprehension Tests:N-Gram and Multi-View Regression

Total Page:16

File Type:pdf, Size:1020Kb

Answering Reading Comprehension Tests:N-Gram and Multi-View Regression Answering Reading Comprehension Tests:N-gram and Multi-View Regression Dept. of CIS - Senior Design 2009-2010 Andrew Pak Daniel Seunghyun Kim Lyle H. Ungar [email protected] [email protected] [email protected] Univ. of Pennsylvania Univ. of Pennsylvania Univ. of Pennsylvania Philadelphia, PA Philadelphia, PA Philadelphia, PA ABSTRACT word has a number of distinct \meanings" -which has been Computer \reading" of natural languages is a growing re- an open problem for a long time can be addressed. search topic with numerous applications, ranging from areas How can one test if machine is correctly \reading" natural of artificial intelligence to linguistics. A successful \reading" languages? Successfully \reading" a passage can be inter- of natural languages can be interpreted in two ways: 1) ex- preted in two ways, as extracting facts from the text or as tracting facts out of a passage and 2) capturing \meaning" comprehending the \meaning" of the text. Obtaining facts of a text. We focus on the latter interpretation, defining from a passage can be thought of as building a knowledge \meaning" as is done in humans, namely, can the system database using tuples that contain information. For exam- answer the same reading comprehension questions that are ple, (Bob, birthday, 6/28/1965) can be a tuple extracted given to early learners of language. from a passage about Bob. The task of extracting facts from We present two approaches to answering cloze questions, passages is heavily researched by fact engines, which will be which are fill-in-the blank, multiple-choice reading compre- introduced in the \Related Work" section. Construction and hension questions. The first approach utilizes n-gram, a ba- maintenance of such knowledge database is valuable, but it sic statistical methodology that captures the local context of provides no context for the passage while being costly and a passage to predict an answer. The second approach uses expensive. We focus on comprehending the \meaning" of Multi-View Regression (\MVR"), based on canonical corre- passages by capturing contexts. lation analysis (\CCA"), which captures both the local and There are several approaches that can be utilized to cap- broader context. In this statistical approach, the \meaning" ture context. HMM and n-gram approach captures only the of each word is represented as a real-valued state vector as- local context, while Latent Semantic Indexing (\LSI") and sociated with each word occurrence. MVR is a dynamical be- Latent Dirchlet Allocation (\LDA") captures only the docu- lief net which, like a Kalman filter or Hidden Markov Model ment level context, or topic. MVR approach captures both (\HMM"), estimates the state based on the preceding and fol- the local and broader context. We build a system that uses lowing sequence of words and predicts the word to be \emit- n-gram and MVR approach to answer a set of cloze questions ted" based on that state. and compare the results between the two. While there has been much research on these statistical In order to see how well an approach captures the \mean- methodologies in the field of machine learning and on gener- ing" of passages, each approach is tested against a set of ation and evaluation of cloze questions in the field of natural cloze questions. Cloze questions are a type of reading com- language processing, the connection between the two hasn't prehension questions which can normally be answered using been explored much. Prior research in cloze questions sug- \yes" or \no", a specific piece of information, or a selection gests that proper context capturing leads to correct answers. from multiple choices. The cloze question answering system We create a system that reads in a set of cloze questions and will focus on those fill-in-the-blank questions with multiple predicts two sets of answers with the two statistical method- choices. Example of such question is: ologies that have different context capturing schemes, and then analyze the results. Because MVR captures both the Anna and her mother boiled water in a big pot and put the local and broader context, it answers cloze questions better berries into it. The water turned into a deep red. Anna's than n-gram, which only captures the local context. mother dipped the pale yarn into it. Soon red yarn was hanging up to dry on a clothesline strung across the kitchen. Anna and her mother changed the blank of the yarn. 1. INTRODUCTION 1. shape If computers can \read" natural languages, the benefit will 2. color be enormous to various fields and industries. We will be one step closer to creating self-learning robots, which has 3. size been the goal of artificial intelligence researchers for many 4. taste years. Also, there can be numerous applications to the field of linguistics and natural language processing. For example, In the above example, the last sentence is the cloze ques- word sense disambiguation - the process of identifying which tion and the sentences prior to the question are considered \meaning" of a word is used in any given sentence, when the as the story related to that question. Stories and questions similar to the example are obtained system. The system searches the Google 3-gram and finds from Lexile, a company that sells language learning related the words that go into the blank and the number of such products. Eight different levels of reading comprehension occurrences. Among the possible multiple choices, the word tests composed of about 50 questions each are used. With with the highest occurrence in Google 3-gram is outputted these cloze questions from Lexile, for which the student re- as the prediction. sponse data set and correct answers are given, the system analyzes the predictions from two approaches. 2.1.2 Multi-View Regression (“MVR") The MVR approach requires a training corpus before a MVR is a slightly different approach to the traditional question can be fed in. Project Gutenberg is an on-line Hidden Markov Model (\HMM") that incorporates Canoni- digital library that contains around 30,000 novels and doc- cal Correlation Analysis (\CCA") and logistic regression. In uments. From this library, novels and documents that have traditional HMM, a statistical model based on Expectation- similar reading level and vocabulary as the stories and ques- Maximization algorithm in which the system being modeled tions from Lexile are filtered to be used as a training corpus. is assumed to be a Markov process with unobserved states, the states are not directly visible, but the outputs are, and 2. RELATED WORK each state has a probability distribution over the possible As our project incorporates statistical algorithms and cloze output tokens. Thus, given some output tokens, HMM gath- question answering, related work consists of two fields: sta- ers information regarding the hidden states that produced tistical methodologies and question answering. In terms of such output. MVR is similar to HMM in that it also as- statistical methodologies, we look at two approaches, n-gram sumes there exists some set of hidden states that produced and MVR. For question answering, related work includes the given output tokens and that these states have a prob- fact-based question answering and cloze question answering. ability distribution over the possible output token. MVR, like HMM, is based on the assumption that each entry in the 2.1 Statistical Methodologies data series can be completely explained by two views: the entries preceding and following the target entry. Under this 2.1.1 N-gram assumption, MVR uses CCA to learn an optimal mapping The task of predicting the next word can be stated as at- from previous or following entries to a latent state space. tempting to estimate the probability of the next word given The hidden states found by CCA is then used as features previous words. In such a stochastic problem, a classification for supervised learning to predict which entry will be seen of the previous words, the history, can be used to predict the as a function of the state. next word. On the basis of having looked at a lot of text, MVR differs from HMM in that HMM assumes each state one can identify which words tend to follow other words. already contains all past information that led to that state For this task, one cannot possibly consider each textual and so when estimating the next state, HMM looks only at history separately: most of the time one will be listening to the state prior to the target state. MVR, on the other hand, a sentence that one has never heard before, and so there is looks at the sequence of states prior to the target state by no previous identical textual history on which to base pre- running a regression on the hidden states. Thus for cloze dictions, and even if one had heard the beginning of the question answering, MVR is more effective than HMM since sentence before, it might end differently this time. And MVR looks at all past information to make predictions while so one needs a method of grouping histories that are sim- HMM does not. ilar in some way so as to give reasonable predictions as to Further, MVR has significant advantage over HMM in which words one can expect to come next. By constructing that MVR is a linear method, which makes MVR faster, a model where all histories that have the same last n-1 words more robust and more scalable to larger data set than HMM. in the same equivalence class and grouping them as a phrase, Also, the Expectation-Maximization algorithm utilized by one can predict the next word by looking at the last word HMM suffers from convergence problems, which MVR does of such n-grams [6].
Recommended publications
  • Handling Ambiguity Problems of Natural Language Interface For
    IJCSI International Journal of Computer Science Issues, Vol. 9, Issue 3, No 3, May 2012 ISSN (Online): 1694-0814 www.IJCSI.org 17 Handling Ambiguity Problems of Natural Language InterfaceInterface for QuesQuesQuestQuestttionionionion Answering Omar Al-Harbi1, Shaidah Jusoh2, Norita Norwawi3 1 Faculty of Science and Technology, Islamic Science University of Malaysia, Malaysia 2 Faculty of Science & Information Technology, Zarqa University, Zarqa, Jordan 3 Faculty of Science and Technology, Islamic Science University of Malaysia, Malaysia documents processing, and answer processing [9], [10], Abstract and [11]. The Natural language question (NLQ) processing module is considered a fundamental component in the natural language In QA, a NLQ is the primary source through which a interface of a Question Answering (QA) system, and its quality search process is directed for answers. Therefore, an impacts the performance of the overall QA system. The most accurate analysis to the NLQ is required. One of the most difficult problem in developing a QA system is so hard to find an exact answer to the NLQ. One of the most challenging difficult problems in developing a QA system is that it is problems in returning answers is how to resolve lexical so hard to find an answer to a NLQ [22]. The main semantic ambiguity in the NLQs. Lexical semantic ambiguity reason is most QA systems ignore the semantic issue in may occurs when a user's NLQ contains words that have more the NLQ analysis [12], [2], [14], and [15]. To achieve a than one meaning. As a result, QA system performance can be better performance, the semantic information contained negatively affected by these ambiguous words.
    [Show full text]
  • The Question Answering System Using NLP and AI
    International Journal of Scientific & Engineering Research Volume 7, Issue 12, December-2016 ISSN 2229-5518 55 The Question Answering System Using NLP and AI Shivani Singh Nishtha Das Rachel Michael Dr. Poonam Tanwar Student, SCS, Student, SCS, Student, SCS, Associate Prof. , SCS Lingaya’s Lingaya’s Lingaya’s Lingaya’s University, University,Faridabad University,Faridabad University,Faridabad Faridabad Abstract: (ii) QA response with specific answer to a specific question The Paper aims at an intelligent learning system that will take instead of a list of documents. a text file as an input and gain knowledge from the given text. Thus using this knowledge our system will try to answer questions queried to it by the user. The main goal of the 1.1. APPROCHES in QA Question Answering system (QAS) is to encourage research into systems that return answers because ample number of There are three major approaches to Question Answering users prefer direct answers, and bring benefits of large-scale Systems: Linguistic Approach, Statistical Approach and evaluation to QA task. Pattern Matching Approach. Keywords: A. Linguistic Approach Question Answering System (QAS), Artificial Intelligence This approach understands natural language texts, linguistic (AI), Natural Language Processing (NLP) techniques such as tokenization, POS tagging and parsing.[1] These are applied to reconstruct questions into a correct 1. INTRODUCTION query that extracts the relevant answers from a structured IJSERdatabase. The questions handled by this approach are of Factoid type and have a deep semantic understanding. Question Answering (QA) is a research area that combines research from different fields, with a common subject, which B.
    [Show full text]
  • Quester: a Speech-Based Question Answering Support System for Oral Presentations Reza Asadi, Ha Trinh, Harriet J
    Quester: A Speech-Based Question Answering Support System for Oral Presentations Reza Asadi, Ha Trinh, Harriet J. Fell, Timothy W. Bickmore Northeastern University Boston, USA asadi, hatrinh, fell, [email protected] ABSTRACT good support for speakers who want to deliver more Current slideware, such as PowerPoint, reinforces the extemporaneous talks in which they dynamically adapt their delivery of linear oral presentations. In settings such as presentation to input or questions from the audience, question answering sessions or review lectures, more evolving audience needs, or other contextual factors such as extemporaneous and dynamic presentations are required. varying or indeterminate presentation time, real-time An intelligent system that can automatically identify and information, or more improvisational or experimental display the slides most related to the presenter’s speech, formats. At best, current slideware only provides simple allows for more speaker flexibility in sequencing their indexing mechanisms to let speakers hunt through their presentation. We present Quester, a system that enables fast slides for material to support their dynamically evolving access to relevant presentation content during a question speech, and speakers must perform this frantic search while answering session and supports nonlinear presentations led the audience is watching and waiting. by the speaker. Given the slides’ contents and notes, the system ranks presentation slides based on semantic Perhaps the most common situations in which speakers closeness to spoken utterances, displays the most related must provide such dynamic presentations are in Question slides, and highlights the corresponding content keywords and Answer (QA) sessions at the end of their prepared in slide notes. The design of our system was informed by presentations.
    [Show full text]
  • Ontology-Based Approach to Semantically Enhanced Question Answering for Closed Domain: a Review
    information Review Ontology-Based Approach to Semantically Enhanced Question Answering for Closed Domain: A Review Ammar Arbaaeen 1,∗ and Asadullah Shah 2 1 Department of Computer Science, Faculty of Information and Communication Technology, International Islamic University Malaysia, Kuala Lumpur 53100, Malaysia 2 Faculty of Information and Communication Technology, International Islamic University Malaysia, Kuala Lumpur 53100, Malaysia; [email protected] * Correspondence: [email protected] Abstract: For many users of natural language processing (NLP), it can be challenging to obtain concise, accurate and precise answers to a question. Systems such as question answering (QA) enable users to ask questions and receive feedback in the form of quick answers to questions posed in natural language, rather than in the form of lists of documents delivered by search engines. This task is challenging and involves complex semantic annotation and knowledge representation. This study reviews the literature detailing ontology-based methods that semantically enhance QA for a closed domain, by presenting a literature review of the relevant studies published between 2000 and 2020. The review reports that 83 of the 124 papers considered acknowledge the QA approach, and recommend its development and evaluation using different methods. These methods are evaluated according to accuracy, precision, and recall. An ontological approach to semantically enhancing QA is found to be adopted in a limited way, as many of the studies reviewed concentrated instead on Citation: Arbaaeen, A.; Shah, A. NLP and information retrieval (IR) processing. While the majority of the studies reviewed focus on Ontology-Based Approach to open domains, this study investigates the closed domain.
    [Show full text]
  • A Question-Driven News Chatbot
    What’s The Latest? A Question-driven News Chatbot Philippe Laban John Canny Marti A. Hearst UC Berkeley UC Berkeley UC Berkeley [email protected] [email protected] [email protected] Abstract a set of essential questions and link each question with content that answers it. The motivating idea This work describes an automatic news chat- is: two pieces of content are redundant if they an- bot that draws content from a diverse set of news articles and creates conversations with swer the same questions. As the user reads content, a user about the news. Key components of the system tracks which questions are answered the system include the automatic organization (directly or indirectly) with the content read so far, of news articles into topical chatrooms, inte- and which remain unanswered. We evaluate the gration of automatically generated questions system through a usability study. into the conversation, and a novel method for The remainder of this paper is structured as fol- choosing which questions to present which lows. Section2 describes the system and the con- avoids repetitive suggestions. We describe the algorithmic framework and present the results tent sources, Section3 describes the algorithm for of a usability study that shows that news read- keeping track of the conversation state, Section4 ers using the system successfully engage in provides the results of a usability study evaluation multi-turn conversations about specific news and Section5 presents relevant prior work. stories. The system is publicly available at https:// newslens.berkeley.edu/ and a demonstration 1 Introduction video is available at this link: https://www.
    [Show full text]
  • Natural Language Processing with Deep Learning Lecture Notes: Part Vii Question Answering 2 General QA Tasks
    CS224n: Natural Language Processing with Deep 1 Learning 1 Course Instructors: Christopher Lecture Notes: Part VII Manning, Richard Socher 2 Question Answering 2 Authors: Francois Chaubard, Richard Socher Winter 2019 1 Dynamic Memory Networks for Question Answering over Text and Images The idea of a QA system is to extract information (sometimes pas- sages, or spans of words) directly from documents, conversations, online searches, etc., that will meet user’s information needs. Rather than make the user read through an entire document, QA system prefers to give a short and concise answer. Nowadays, a QA system can combine very easily with other NLP systems like chatbots, and some QA systems even go beyond the search of text documents and can extract information from a collection of pictures. There are many types of questions, and the simplest of them is factoid question answering. It contains questions that look like “The symbol for mercuric oxide is?” “Which NFL team represented the AFC at Super Bowl 50?”. There are of course other types such as mathematical questions (“2+3=?”), logical questions that require extensive reasoning (and no background information). However, we can argue that the information-seeking factoid questions are the most common questions in people’s daily life. In fact, most of the NLP problems can be considered as a question- answering problem, the paradigm is simple: we issue a query, and the machine provides a response. By reading through a document, or a set of instructions, an intelligent system should be able to answer a wide variety of questions. We can ask the POS tags of a sentence, we can ask the system to respond in a different language.
    [Show full text]
  • Structured Retrieval for Question Answering
    SIGIR 2007 Proceedings Session 14: Question Answering Structured Retrieval for Question Answering Matthew W. Bilotti, Paul Ogilvie, Jamie Callan and Eric Nyberg Language Technologies Institute Carnegie Mellon University 5000 Forbes Avenue Pittsburgh, PA 15213 { mbilotti, pto, callan, ehn }@cs.cmu.edu ABSTRACT keywords in a minimal window (e.g., Ruby killed Oswald is Bag-of-words retrieval is popular among Question Answer- not an answer to the question Who did Oswald kill?). ing (QA) system developers, but it does not support con- Bag-of-words retrieval does not support checking such re- straint checking and ranking on the linguistic and semantic lational constraints at retrieval time, so many QA systems information of interest to the QA system. We present an simply query using the key terms from the question, on the approach to retrieval for QA, applying structured retrieval assumption that any document relevant to the question must techniques to the types of text annotations that QA systems necessarily contain them. Slightly more advanced systems use. We demonstrate that the structured approach can re- also index and provide query operators that match named trieve more relevant results, more highly ranked, compared entities, such as Person and Organization [14]. When the with bag-of-words, on a sentence retrieval task. We also corpus includes many documents containing the keywords, characterize the extent to which structured retrieval effec- however, the ranked list of results can contain many irrel- tiveness depends on the quality of the annotations. evant documents. For example, question 1496 from TREC 2002 asks, What country is Berlin in? A typical query for this question might be just the keyword Berlin,orthekey- Categories and Subject Descriptors word Berlin in proximity to a Country named entity.
    [Show full text]
  • Multiple Choice Question Answering Using a Large Corpus of Information
    Multiple Choice Question Answering using a Large Corpus of Information a dissertation submitted to the faculty of the graduate school of the university of minnesota by Mitchell Kinney in partial fulfillment of the requirements for the degree of doctor of philosophy Xiaotong Shen, Adviser July 2020 © Mitchell Kinney 2020 Acknowledgements I am very thankful for my adviser, Xiaotong Shen. He has consistently provided valu- able feedback and direction in my graduate career. His input when I was struggling and feeling dismayed at results was always encouraging and pushed me to continue onward. I also enjoyed our talks about topics unrelated to statistics that helped re- mind me not to completely consume my life with my studies. I would like to thank my committee members Jie Ding, Wei Pan, Maury Bramson, and Charlie Geyer for participating in my preliminary and final exams and for their feedback on improving my research. I am grateful to Galin Jones for his open door and help on side projects throughout the years. Yuhong Yang was an exceptional mentor and instructor that I am thankful for constantly encouraging me. Thank you also to Hui Zou, Charles Doss, Birgit Grund, Dennis Cook, Glen Meeden, and Adam Rothman for their excellent instruction and their helpful office-hour guidance during my first few years. The office staff at the statistics department (a special thank you to Taryn Verley who has been a constant) has been amazingly helpful and allowed me to only stress about my studies and research. My peers in the statistics department and at the university have made my time in Minnesota immensely enjoyable.
    [Show full text]
  • Artificial Intelligence for Virtual Assistant
    Flyer Information Management and Governance Artificial Intelligence for Virtual Assistant IDOL for Virtual Assistant, is an AI (Artificial Intelligence) powered solution, that allows organizations to offer their customers and employees access to information and processes using an automated human-like operator which can engage in natural language dialogues. streamline the retrieval process, which allows such databases of information to allow natural To address an increasingly diverse information to be obtained in a more conve- language questions to receive direct factual nient and user-friendly fashion. Moreover, it answers. This is achieved by processing and range of information requests, should offer an interface to allow configura- understanding the question and mapping it to IDOL uses our unique Natural tion of that process to ensure existing human an appropriate structured query that will in turn Language Question Answering knowledge is allowed to create and train the respond with the desired answer. An example (NLQA) technology to allow natural system to answer questions optimally. In gen- of this would be databases of financial prices conversations between end users eral, there are three independent steps to ac- over time, allowing a query such as, “What was complish this. the EPS of HPQ in Q3 2016?” to receive the and a virtual assistant, to perform precise answer. This database of structure in- queries against: curated (FAQ) Answer Bank formation is generally known as the fact bank. responses (Answer Bank), data Many administrators of support or user-help tables and data services (Fact systems have an existing set of frequently In addition, the system should have the abil- Bank), and unstructured documents asked questions that human support agents ity to understand and extract information (for (Passage Extraction); and to are trained on, or the help pages are populated example names, numbers) from unstructured data such as free-form documents.
    [Show full text]
  • Natural Language Question Answering: the View from Here
    Natural Language Engineering 7 (4): 275–300. c 2001 Cambridge University Press 275 DOI: 10.1017/S1351324901002807 Printed in the United Kingdom Natural language question answering: the view from here L. HIRSCHMAN The MITRE Corporation, Bedford, MA, USA R.GAIZAUSKAS Department of Computer Science, University of Sheffield, Sheffield, UK e-mail: [email protected] 1 Introduction: What is Question Answering? As users struggle to navigate the wealth of on-line information now available, the need for automated question answering systems becomes more urgent. We need systems that allow a user to ask a question in everyday language and receive an answer quickly and succinctly, with sufficient context to validate the answer. Current search engines can return ranked lists of documents, but they do not deliver answers to the user. Question answering systems address this problem. Recent successes have been reported in a series of question-answering evaluations that started in 1999 as part of the Text Retrieval Conference (TREC). The best systems are now able to answer more than two thirds of factual questions in this evaluation. The combination of user demand and promising results have stimulated inter- national interest and activity in question answering. This special issue arises from an invitation to the research community to discuss the performance, requirements, uses, and challenges of question answering systems. The papers in this special issue cover a small part of the emerging research in question answering. Our introduction provides an overview of question answering as a research topic. The first article, by Ellen Voorhees, describes the history of the TREC question answering evaluations, the results and the associated evaluation methodology.
    [Show full text]
  • Web Question Answering: Is More Always Better?
    Web Question Answering: Is More Always Better? Susan Dumais, Michele Banko, Eric Brill, Jimmy Lin, Andrew Ng Microsoft Research One Microsoft Way Redmond, WA 98052 USA {sdumais, mbanko, brill}@research.microsoft.com [email protected]; [email protected] ABSTRACT simply by increasing the amount of data used for learning. This paper describes a question answering system that is designed Following the same guiding principle we take advantage of the to capitalize on the tremendous amount of data that is now tremendous data resource that the Web provides as the backbone available online. Most question answering systems use a wide of our question answering system. Many groups working on variety of linguistic resources. We focus instead on the question answering have used a variety of linguistic resources – redundancy available in large corpora as an important resource. part-of-speech tagging, syntactic parsing, semantic relations, We use this redundancy to simplify the query rewrites that we named entity extraction, dictionaries, WordNet, etc. (e.g., need to use, and to support answer mining from returned snippets. [2][8][11][12][13][15][16]).We chose instead to focus on the Our system performs quite well given the simplicity of the Web as gigantic data repository with tremendous redundancy that techniques being utilized. Experimental results show that can be exploited for question answering. The Web, which is question answering accuracy can be greatly improved by home to billions of pages of electronic text, is orders of magnitude analyzing more and more matching passages. Simple passage larger than the TREC QA document collection, which consists of ranking and n-gram extraction techniques work well in our system fewer than 1 million documents.
    [Show full text]
  • A Speech-Based Question-Answering System on Mobile Devices
    Qme! : A Speech-based Question-Answering system on Mobile Devices Taniya Mishra Srinivas Bangalore AT&T Labs-Research AT&T Labs-Research 180 Park Ave 180 Park Ave Florham Park, NJ Florham Park, NJ [email protected] [email protected] Abstract for the user to pose her query in natural language and presenting the relevant answer(s) to her question, we Mobile devices are becoming the dominant expect the user’s information need to be fulfilled in mode of information access despite being a shorter period of time. cumbersome to input text using small key- boards and browsing web pages on small We present a speech-driven question answering screens. We present Qme!, a speech-based system, Qme!, as a solution toward addressing these question-answering system that allows for two issues. The system provides a natural input spoken queries and retrieves answers to the modality – spoken language input – for the users questions instead of web pages. We present to pose their information need and presents a col- bootstrap methods to distinguish dynamic lection of answers that potentially address the infor- questions from static questions and we show mation need directly. For a subclass of questions the benefits of tight coupling of speech recog- that we term static questions, the system retrieves nition and retrieval components of the system. the answers from an archive of human generated an- swers to questions. This ensures higher accuracy 1 Introduction for the answers retrieved (if found in the archive) and also allows us to retrieve related questions on Access to information has moved from desktop and the user’s topic of interest.
    [Show full text]