[SOLVED] CS561 Assignment 4

30.00 $

Category: Tags: , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Ass4-knjimr.zip (612.8 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
đź”’ Securely Powered by:
Secure Checkout
5/5 - (1 vote)

Write a Python program that implements Question classification using Decision Tree classifier.

Example
Question: What is the temperature at the center of the earth ? Class: NUM, which refers to the question that looks for the numeric type answer.

Dataset

Training Set: http://cogcomp.org/Data/QA/QC/train_5500.label
Test Set: http://cogcomp.org/Data/QA/QC/TREC_10.label.
Use only the coarse grained class label to build your model. For more details

about the dataset follow these paper: https://goo.gl/jAJFKQ

Features

(a) Length of the question
(b) Lexical Features: Word n-gram.
(c) Syntactic Features: Parts of speech tag unigrams.
Implement n-gram ( n=1,2 and 3) features for each question instance. You may choose only the most frequent n-grams to provide as a feature for your model. For n=1, use 500 most frequent 1-gram, similarly use 300 and 200 most frequent n-grams, for n=2 and 3 respectively. For parts of speech tag unigrams, first you need to get a POS tag for each question instance. Use can use any library like Stanford POS tag-ger see https://nlp.stanford.edu/software/tagger.shtml NLTK POS tagger see http://www.nltk.org/book/ch05.html etc. Similar to lexical features use 500 most frequent 1-gram to build the model. For more details about the features, see section 2.3 in the following paper https://goo.gl/X7X7ox. Result and Evaluation

â—Ź Report the 10-fold cross-validation results in terms of precision, recall, and F-score.

â—Ź Report results of feature ablation study and state which feature has contributed most towards correctly predicting a particular class

â—Ź Report precision, recall, and F-score measures on test sets using models based on the gini index, mis-classification error and cross-entropy.

â—Ź Show whether errors propagated by one model are corrected by other models or not. If yes, then report how many percent of samples are corrected.

Ex. Observe how many samples are mis-classified using gini index based model but correctly classified by mis-classification error and cross-entropy based model.

  • Ass4-knjimr.zip