Skip to content

Instantly share code, notes, and snippets.

@AyishaR
Created January 22, 2021 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AyishaR/706b48ab43168df59654087650de5626 to your computer and use it in GitHub Desktop.
Save AyishaR/706b48ab43168df59654087650de5626 to your computer and use it in GitHub Desktop.
cv = CountVectorizer(ngram_range = (1,1), max_features=20000)
train_bow = cv.fit_transform(train_df['Cleaned'])
val_bow = cv.transform(val_df['Cleaned'])
test_bow = cv.transform(test_df['Cleaned'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment