Question
PLEASE IMPLEMENT IT USING C++ AND PROVIDE SOME INFORMATION. THANK YOU! In this project, you will construct a simple question answering system. You must implement
PLEASE IMPLEMENT IT USING C++ AND PROVIDE SOME INFORMATION. THANK YOU!
In this project, you will construct a simple question answering system. You must implement a program which displays an answer for any question related to the given text. Two files will be used by your algorithm: One which includes a text, and one containing questions. A script.txt file which you will be searching for answers. A questions.txt file which you must find answers from the text. Each question is on a newline with a question mark at the end. A long text and a list of questions will be given as input to your program. For each question, an answer must be found in the text and printed to the screen. Most of the questions will have a single word answer. All questions asked will have an answer in the text, i.e. it is impossible that an output for a question is "No answer". An answer to a question will not span multiple sentences, all answers will be contained in a single sentence in the text. When your program is executed, it will automatically generate an answer for each question in the questions.txt file using the script.txt file as main text. It will NOT get any inputs.
Your program should give an output to the console in the following format when executed:
1) {Question}
{Answer}
2) {Question}
{Answer} .
n) {Question}
{Answer}
WHAT I WANT TO DO IS READ THOSE TWO FILES SENTENCE BY SENTENCE (QUESTION BY QUESTION) AND COMPARE EACH SENTENCE WITH EACH QUESTION. IF MULTIPLE WORDS ARE MATCHING (EXCEPT WORDS LIKE THE / A / AN / IS / ARE / AND) THEN PRINT THE UNMATCHING WORDS BECAUSE THOSE ARE THE ANSWERS FOR MOST OF THE QUESTIONS. IF YOU HAVE A BETTER SOLUTION YOU CAN ALSO USE THAT. IF YOU ARE INTERESTED YOU CAN MAIL ME projectcpp2022@ g mail .com AND I CAN PROVIDE YOU WHOLE PROJECT DETAILS WITH EXAMPLE .txt FILES. THANK YOU AGAIN ! II WILL GIVE THUMBS UP AND MY PRAYERS!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started