count = CountVectorizer(vocabulary=myvocab)
X_vectorized = count.transform(X_train)
text_classifier = Pipeline([('tfidf', TfidfTransformer()), ('clf',
    LinearSVC(C=1000))])
Scikits-learn: Use custom vocabulary together with Pipeline