Các dạng trực quan phổ biến trong khai phá văn bản

Khai phá văn bản với Bag-of-Words trong R

Ted Kwartler

Instructor

Vì sao cần trực quan?

  • Trực quan tốt giúp kết luận nhanh
  • Não xử lý thông tin trực quan hiệu quả
Khai phá văn bản với Bag-of-Words trong R

Bối cảnh

tweet_topics.png

Khai phá văn bản với Bag-of-Words trong R

Bối cảnh

vector.png

Khai phá văn bản với Bag-of-Words trong R

Biểu đồ tần suất thuật ngữ với 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)

tf_plot.png

Khai phá văn bản với Bag-of-Words trong R

Biểu đồ tần suất thuật ngữ với 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

Khai phá văn bản với Bag-of-Words trong R

Ayo berlatih!

Khai phá văn bản với Bag-of-Words trong R

Preparing Video For Download...