Skip to contents

For finding terms with greatest difference in between topics

Usage

diff_terms_segmentr(lda, top_n = 10)

Arguments

lda

The LDA object made with fit_LDAs or par_fit_LDAs

top_n

How many of the most frequently used terms to include per topic

Value

a ggplot object

Examples

lda <- SegmentR:::test_data(explore = FALSE)$lda$lda[[1]]
#> removing stopwords
#> Making DTMs
#> making tuning grid
#> setting up LDAs
lda %>% diff_terms_segmentr()
#> $topic1_vs_topic2

#> 
#> $topic1_vs_topic3

#> 
#> $topic2_vs_topic3

#>