Skip to content

Instantly share code, notes, and snippets.

@milesmcc
Created November 6, 2018 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milesmcc/072b6f7be6b72c154e921a6e2c6fa7d0 to your computer and use it in GitHub Desktop.
Save milesmcc/072b6f7be6b72c154e921a6e2c6fa7d0 to your computer and use it in GitHub Desktop.
classifier = Pipeline([('vect', CountVectorizer()),
('tfidf', TfidfTransformer()),
('clf', MultinomialNB())])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment