Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cv = CountVectorizer(ngram_range = (1,1), max_features=20000)
train_bow = cv.fit_transform(train_df['Text'])
val_bow = cv.transform(val_df['Text'])
test_bow = cv.transform(test_df['Text'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment