Skip to content

Instantly share code, notes, and snippets.

@kipronokoech
Created August 2, 2020 14:53
Show Gist options
  • Save kipronokoech/26bc52a66e7ab977a2d90ba0f8c05829 to your computer and use it in GitHub Desktop.
Save kipronokoech/26bc52a66e7ab977a2d90ba0f8c05829 to your computer and use it in GitHub Desktop.
vectorizer = TfidfVectorizer()
train_x_vectors = vectorizer.fit_transform(train_x)
test_x_vectors = vectorizer.transform(test_x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment