vectorizer = CountVectorizer() X = vectorizer.fit_transform(corpus)