Skip to content

Instantly share code, notes, and snippets.

@lucifermorningstar1305
Created July 29, 2022 12:40
Show Gist options
  • Save lucifermorningstar1305/2b79cabbb32f7ce0f27770adeb14776a to your computer and use it in GitHub Desktop.
Save lucifermorningstar1305/2b79cabbb32f7ce0f27770adeb14776a to your computer and use it in GitHub Desktop.
Build the TF-IDF matrix of the text data
m = DocumentTermMatrix(crps)
tfidf_mat = tf_idf(m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment