This library classifies questions given in test.csv into what, when, affirmation and unknown classes
It considers questions given in files what, when and affirmation as training data corresponding to each type. Initial set of examples are added. Further more examples can be added to these files if required
Output is written to file testOut.csv
Python(2.7)
Python Packages: nltk, sklearn, numpy, csv
- Add training data to what, when and affirmation files. Some examples are already added sufficient to run code.
- Add the questions you want to calssify in test.csv file.
- Run code.py
- Check file testOut.csv for output
For sample run code.py and check file testOut.csv
- POS tagging is done using NLTK pos-tagger
- Using selected words and POS tags as features, multiclass SVM classifier is used for classification using one versus all approach and RBF kernal