text_plain_output_1.png
from sklearn.feature_extraction.text import CountVectorizer

sentences = ['This is the first document.', 'This document is the second document.', 'And this is the third one.', 'Is this the first document?']

cv = CountVectorizer()

X = cv.fit_transform(sentences)
X.toarray()