일반적인 텍스트 마이닝 시각화

R로 배우는 Bag-of-Words 텍스트 마이닝

Ted Kwartler

Instructor

왜 시각화할까요?

  • 좋은 시각화는 빠른 결론으로 이어집니다
  • 뇌는 시각 정보를 효율적으로 처리합니다
R로 배우는 Bag-of-Words 텍스트 마이닝

상황 설정

트윗_주제.png

R로 배우는 Bag-of-Words 텍스트 마이닝

상황 설정

벡터.png

R로 배우는 Bag-of-Words 텍스트 마이닝

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

R로 배우는 Bag-of-Words 텍스트 마이닝

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

R로 배우는 Bag-of-Words 텍스트 마이닝

연습해 봅시다!

R로 배우는 Bag-of-Words 텍스트 마이닝

Preparing Video For Download...