Coherence for each topic
Examples
ldas <- SegmentR:::test_data()$lda
#> Making DTMs
#> making tuning grid
#> setting up LDAs
dtms <- ldas$dtm
ldas <- ldas$lda
coherence <-
purrr::map2(dtms,
ldas,
coherence_segmentr)
coherence[[1]]
#> # A tibble: 3 × 2
#> topic coherence
#> <chr> <dbl>
#> 1 topic_1 0.00884
#> 2 topic_2 0.0220
#> 3 topic_3 0.0191