title: How do I store a TfidfVectorizer for future use in scikit-learn?
body: <p>I have a <code>TfidfVectorizer</code> that vectorizes collection of articles followed by feature selection.</p>
  
  <pre><code>vectroizer = TfidfVectorizer()
  X_train = vectroizer.fit_transform(corpus)
  selector = SelectKBest(chi2, k = 5000 )
  X_train_sel = selector.fit_transform(X_train, y_train)
  </code></pre>
  
  <p>Now, I want to store this and use it in other programs. I don't want to re-run the <code>TfidfVectorizer()</code> and the feature selector on the training dataset. How do I do that? I know how to make a model persistent using <code>joblib</code> but I wonder if this is the same as making a model persistent.</p>