Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created September 28, 2023 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quantra-go-algo/0f0dc607ab5fd43d5b8ff5f4128d2ef4 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/0f0dc607ab5fd43d5b8ff5f4128d2ef4 to your computer and use it in GitHub Desktop.
# Get the vocabulary (unique words) and the BoW matrix
vocabulary = vectorizer.get_feature_names_out()
bow_matrix = X.toarray()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment