token.rank: Compute distinctiveness and saliency of the words in the...

Description Usage Arguments Value

Description

This function computes 'distinctiveness' and 'saliency' as defined in Chuang, et al (2012), 'Termite'.

Usage

1
token.rank(word.id = integer(), topic.id = integer(), phi.hat = numeric())

Arguments

word.id

an integer vector with the token id of each token occurrence in the data.

topic.id

an integer vector with the topic id for each token in the data.

phi.hat

a numeric (K x W) matrix with topic distributions on each of the K rows

Value

A list of two length-W vectors, the distinctiveness and saliency of each of the W tokens in the vocab


kshirley/LDAtools documentation built on May 20, 2019, 7:03 p.m.