from sklearn.svm import LinearSVC
pipeline = Pipeline([('vectorizer', CountVectorizer()), ('classifier',
    LinearSVC())])
Scikit-Learn's Pipeline: A sparse matrix was passed, but dense data is required