stylest (version 0.1.0)

fit_term_usage: Computes speakers' term usage rates

Description

Computes speakers' term usage rates

Usage

fit_term_usage(x, speaker, terms, smooth)

Arguments

x

Text vector. May be a corpus_frame object

speaker

Vector of speaker labels. Should be the same length as x

terms

Vocabulary for document term matrix

smooth

Numeric value used smooth term frequencies

Value

named list of terms, vector of num tokens uttered by each speaker, smoothing value, and (smoothed) term usage rate matrix