TDM e DTM

Text mining con Bag-of-Words in R

Ted Kwartler

Instructor

TDM vs. DTM

tdm:dtm.png

# Generate TDM
coffee_tdm <- TermDocumentMatrix(clean_corp)

# Generate DTM coffee_dtm <- DocumentTermMatrix(clean_corp)
Text mining con Bag-of-Words in R

Matrice di frequenza delle parole (WFM)

# Load qdap package
library(qdap)

# Generate word frequency matrix coffee_wfm <- wfm(coffee_text$text)

wfm.png

Text mining con Bag-of-Words in R

Passiamo alla pratica !

Text mining con Bag-of-Words in R

Preparing Video For Download...