MulaiMulai sekarang secara gratis

Summarizing topics

Let's explore some of the implied features of the LDA output using some grouped summaries.

Latihan ini adalah bagian dari kursus

Introduction to Text Analysis in R

Lihat Kursus

Petunjuk latihan

  • Produce a grouped summary of the LDA output by topic.
  • Calculate the sum of the word probabilities.
  • Count the number of terms.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Produce a grouped summary of the LDA output by topic
lda_topics %>% 
  ___(___) %>% 
  summarize(
    # Calculate the sum of the word probabilities
    sum = ___(___),
    # Count the number of terms
    n = ___()
  )
Edit dan Jalankan Kode