Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created September 28, 2023 17:58
Show Gist options
  • 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