type_probability: Topic model key term summaries

Description Usage Arguments Details Value References

View source: R/topic_summaries.R

Description

The classical way of representing topics by order by the probability for a type within a topic.

Usage

1
2
3
4
5
6
7
8
9
type_probability(state, j, beta = 0)

topic_probability(state, j, beta = 0)

KR1(state, j, beta = 0)

KR2(state, j, beta = 0)

relevance(state, j, beta = 0, lambda = 0.6)

Arguments

state

A tidy topic model state file

j

The number of top words to return

beta

Beta hyper parameter. Default is 0 (no smoothing).

lambda

Relevance weight. Default is 0.6.

Details

To save space the calculations are done using a sparse format, only returning values for type-topic combination that exist in the model. This means that unless beta is set to 0, the returning probabilities will not sum to 1.

Not all reweighting schemes return a probability (such as KR1, KR2 and relevance)

Value

Returns a data_frame with topic and top terms

References

Topic and keyword re-ranking for LDA-based topic modeling (2009) LDAvis: A method for visualizing and interpreting topics (2014)


MansMeg/topicmodeltoolbox documentation built on May 7, 2019, 2:45 p.m.