Skip to content

Instantly share code, notes, and snippets.

@JeremiahKamama
Last active July 9, 2021 12:38
Show Gist options
  • Select an option

  • Save JeremiahKamama/7814c0bb3d973332024eda8148291ab2 to your computer and use it in GitHub Desktop.

Select an option

Save JeremiahKamama/7814c0bb3d973332024eda8148291ab2 to your computer and use it in GitHub Desktop.
tfvectorizer = TfidfVectorizer(tokenizer = my_tokenizer)
text_cf = Pipeline([('tfidf', TfidfVectorizer()),('classifier',LinearSVC(),)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment