In the fallowing code:
# Initializes variable to class, empty BoW vector vectorizer = CountVectorizer() # Creates a BoW matrix bow_matrix = vectorizer