japerk/nltk-trainer — pull request #15 by dblommesteijn (2013-07-23 15:38:58+00:00)
Title: Add labels option to Classifier

I've added an option to specify the labels (categories) used by train_classifier.py, because I could not find an option to delimit categories.

For example: using only french and swedish categories on the europarl_raw dataset
$ python train_classifier.py europarl_raw --classifier NaiveBayes --no-pickle --labels french,swedish