fromsklearn.feature_extraction.textimportCountVectorizermax_features=4ngrams=2# tri gramvectorizer=CountVectorizer(max_features=max_features,ngram_range=(1,ngrams))X=vectorizer.fit_transform(corpus)print(X.toarray())print(vectorizer.get_feature_names_out())