Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created January 28, 2018 07:19
Show Gist options
  • Select an option

  • Save dipanjanS/228f00aabcdd46440e9e2da1bb3bbdaf to your computer and use it in GitHub Desktop.

Select an option

Save dipanjanS/228f00aabcdd46440e9e2da1bb3bbdaf to your computer and use it in GitHub Desktop.
# get all unique words in the corpus
vocab = cv.get_feature_names()
# show document feature vectors
pd.DataFrame(cv_matrix, columns=vocab)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment