simple version that learns maxent classifiers with sklearn