japerk / nltk-trainer

Train NLTK objects with zero code
http://nltk-trainer.readthedocs.org/en/latest/
Apache License 2.0
747 stars 225 forks source link

--show-most-informative 10 ignored #5

Closed az0 closed 13 years ago

az0 commented 13 years ago

Using invocation shown on blog, the parameter is ignored.

http://streamhacker.com/2010/10/25/training-binary-text-classifiers-nltk-trainer/

$ python train_classifier.py --algorithm NaiveBayes --instances files --fraction 0.75 --show-most-informative 10 --no-pickle movie_reviews 2 labels: ['neg', 'pos'] 1500 training feats, 500 testing feats training ['NaiveBayes'] classifier training NaiveBayes classifier accuracy: 0.718000 neg precision: 0.950413 neg recall: 0.460000 neg f-measure: 0.619946 pos precision: 0.643799 pos recall: 0.976000 pos f-measure: 0.775835 [z@a japerk-nltk-trainer-dc71c61]$

japerk commented 13 years ago

Please pull in the latest, this should be fixed now.