Tutorial 1B - Nagumkc/CS5560_KDM_Lab-assignments GitHub Wiki

                                         Tutorial 1B
                                 Knowledge Discovery Management

Name : Nageswara Rao Nandigam

Class ID : 18


Lab assignment #1B


1. Generate the following NLP tasks for the following sentence manually


NLP Tasks:

a. The dog saw John in the park


b. The little bear saw the fine fat trout in the rocky brook.


2. Create a NLP project for the following tasks using CoreNLP

Input: Choose Dataset from the sheets

Below code for reading text from dataset


a. Part-of-speech (POS) tagger

Below snippet code for getting POS

Output


b. Named entity recognizer (NER)

Below snippet code for getting NER

Output:


c. Co-reference resolution system

Below snippet code for getting Co-references

Output:


d. Sentiment Analysis

Below snippet code for getting Sentiment label

Output:


**3. Create a simple question answering system as an extension of the dataset and tasks done in (2). **


Basically I designed three Q/A system of who, where and when on cricket sport dataset using NLP NER


Question 1: who

Who all players played between New Zealand vs Australia match?

We identified persons from NLP NER tags and put it in intermediate storage and displaying it as answer

Below the snippet code I wrote to do this

Output:


Question 2: where

Which places New Zealand vs Australia happened?

We identified Locations from NLP NER tags and put it in intermediate storage and displaying it as answer

Below the snippet code I wrote to do this

Output:


Question 3: when

When the New Zealand vs Australia happened?

We identified date from NLP NER tags and put it in intermediate storage and displaying it as answer

Below the snippet code I wrote to do this

Output: