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

Can not use sklearn as classifier #21

Closed qdwang closed 10 years ago

qdwang commented 10 years ago

after

python train_classifier.py movie_reviews --classifier sklearn.LinearSVC

I got this

train_classifier.py: error: argument --classifier/--algorithm: invalid choice: '
sklearn.LinearSVC' (choose from 'NaiveBayes', 'DecisionTree', 'Maxent', 'GIS', '
IIS', 'CG', 'BFGS', 'Powell', 'LBFGSB', 'Nelder-Mead', 'MEGAM', 'TADM')

In python, I CAN import sklearn with no error or warning.

How can i solve this?

THX~

qdwang commented 10 years ago

I found that I need to install numpy-MKL.

Solved.