Skip to content

Instantly share code, notes, and snippets.

@HeenaR17
Created October 25, 2020 19:26
Show Gist options
  • Save HeenaR17/260241f8ffd09ecb37ab86a19bb16f54 to your computer and use it in GitHub Desktop.
Save HeenaR17/260241f8ffd09ecb37ab86a19bb16f54 to your computer and use it in GitHub Desktop.
cv = CountVectorizer(max_features=5000, ngram_range=(1,3))
X = cv.fit_transform(corpus).toarray()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment