*******Artificial Intelligence
****Part-1
The focus is to build a question-answering system.Few questions (queries) will be given. But
apart from these, there will be questions for each part that will have to be answered during
evaluation. So hard-coding should be avoided and your code should be as general as
possible.
=================================Dataset================================
For this phase, the commentary data of all the five ODI matches (for both innings) has to be
included.
The links to the 5 matches are:
- http://www.espncricinfo.com/new-zealand-v-india-2014/engine/match/667641.html
- http://www.espncricinfo.com/new-zealand-v-india-2014/engine/match/667643.html
- http://www.espncricinfo.com/new-zealand-v-india-2014/engine/match/667645.html
- http://www.espncricinfo.com/new-zealand-v-india-2014/engine/match/667647.html
- http://www.espncricinfo.com/new-zealand-v-india-2014/engine/match/667649.html
===================Text processing========================================
This part deals with questions to be answered that will require string parsing and text
processing of the commentary data.
The commentary information consists of :
- ball by ball details (so naturally over by over information is captured)
- for each ball, the information is of the form:
PLAYER1 to PLAYER2, RUNS SCORED / “OUT”, DESCRIPTION (of the ball and the
way ball was played, etc). - comments by different users, during the course of play
So questions based on the following grammar need to be answered.
Rough grammar of questions for part 1:
:
: first | second | third | fourth | fifth
: this will contain information about few / all of the following: - player hitting Ones / Twos / Fours / Sixes (optional number or
“maximum” may be specified like player1 hit 3 sixes) - about the specific over(or there may not be any specific over given)3. player getting out
- player bowling wide / no ball (optional number or “maximum” may
be specified, see Q5)
: which ball | which over | who dismissed (although this question can be
answered even using scorecard info) | who hit | which bowler
=================================Questions==========================
- In the first match, Kohli hit sixes in overs of which bowler(s)?
(here number of sixes and specific over is not specified, so you should retrieve all the instances) - In the first match, Williamson was out in which over?
(you will need to search for “OUT” word and find the appropriate over/ball information. In
this query the answer would be “NONE” as Williamson was not out, a clever solution would
be to first search the scorecard information and if required subsequently search the
commentary) - In third match, Taylor hit fours in which overs?
- In fourth match, Dhoni hit six in over 30, in which ball?
- In third match, Anderson bowled maximum wides in which over?
***************************PART-2 ************************************
Build the same engine without a question grammar.