Created
May 24, 2017 10:12
-
-
Save Tathagatd96/5b9c307ee81a81cfd102932c6658d5d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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