nltk/nltk — pull request #22 by larsmans (2012-01-14 19:09:30+00:00)
Title: More features for scikit-learn wrapper

Ok, here's some more work on the scikit-learn wrapper. The doctests are primitive since the string representation of a scikit-learn estimator depends on the scikit-learn version (new versions often introduce extra parameters). The main thing left to implement is `most_informative_features`, which should not be too hard to implement at least for linear estimators.

The module still does not try to import scikit-learn. That would require

try:
import sklearn
except ImportError: # scikit-learn < 0.8
import scikit.learn