Skip to content

Instantly share code, notes, and snippets.

@andreaschandra
Created June 27, 2019 14:06
Show Gist options
  • Select an option

  • Save andreaschandra/0f39085420f2ff9138961874859bea9b to your computer and use it in GitHub Desktop.

Select an option

Save andreaschandra/0f39085420f2ff9138961874859bea9b to your computer and use it in GitHub Desktop.
cv = CountVectorizer()
X_train = cv.fit_transform(d_train.content_cleansing)
X_test = cv.transform(d_test.content_cleansing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment