TDM & DTM

Text Mining dengan Bag-of-Words di 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 dengan Bag-of-Words di R

Matriks Frekuensi Kata (WFM)

# Load qdap package
library(qdap)

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

wfm.png

Text Mining dengan Bag-of-Words di R

Ayo berlatih!

Text Mining dengan Bag-of-Words di R

Preparing Video For Download...