Visual umum untuk text mining

Text Mining dengan Bag-of-Words di R

Ted Kwartler

Instructor

Mengapa membuat visual?

  • Visual yang baik mempercepat kesimpulan
  • Otak memproses informasi visual dengan efisien
Text Mining dengan Bag-of-Words di R

Gambaran awal

topik_tweet.png

Text Mining dengan Bag-of-Words di R

Gambaran awal

vektor.png

Text Mining dengan Bag-of-Words di R

Plot frekuensi istilah dengan tm

# Convert TDM to matrix
coffee_m <- as.matrix(coffee_tdm)

# Sum rows and sort by frequency term_frequency <- rowSums(coffee_m) term_frequency <- sort(term_frequency, decreasing = TRUE)
# Create a barplot barplot(term_frequency[1:10], col = "tan", las = 2)

plot_tf.png

Text Mining dengan Bag-of-Words di R

Plot frekuensi istilah dengan qdap

# Load qdap package
library(qdap)

# Find term frequencies frequency <- freq_terms( tweets$text, top = 10, at.least = 3, stopwords = "Top200Words" )
# Plot term frequencies plot(frequency)

 

qdap_plot.png

Text Mining dengan Bag-of-Words di R

Ayo berlatih!

Text Mining dengan Bag-of-Words di R

Preparing Video For Download...