Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Tathagatd96/5b9c307ee81a81cfd102932c6658d5d9 to your computer and use it in GitHub Desktop.
Save Tathagatd96/5b9c307ee81a81cfd102932c6658d5d9 to your computer and use it in GitHub Desktop.
#Building a pipeline
text_clf=Pipeline([('vect',CountVectorizer()),('tfidf',TfidfTransformer()),('clf',MultinomialNB())])
text_clf=text_clf.fit(twenty_train.data,twenty_train.target)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment