japerk / nltk-trainer

Train NLTK objects with zero code

Home Page:http://nltk-trainer.readthedocs.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not use sklearn as classifier

qdwang opened this issue · comments

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~

I found that I need to install numpy-MKL.

Solved.