Skip to content

Instantly share code, notes, and snippets.

@damzaky
Created April 6, 2020 10:40
Show Gist options
  • Save damzaky/5891985ceac4c0304903bbd59724e2a2 to your computer and use it in GitHub Desktop.
Save damzaky/5891985ceac4c0304903bbd59724e2a2 to your computer and use it in GitHub Desktop.
X = data['text']
y = data['label']
vectorizer = CountVectorizer()
vectorizer.fit(X)
X = vectorizer.transform(X).toarray()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment