Can not use sklearn as classifier
qdwang opened this issue · comments
qdwang commented
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
I found that I need to install numpy-MKL.
Solved.