The same text, speaker, and filter should be used in this model as in fit_speaker to select the terms for the latter function.
fit_speaker
stylest_terms(x, speaker, vocab_cutoff, filter = NULL)
Corpus as text vector. May be a corpus_frame object
corpus_frame
Vector of speaker labels. Should be the same length as x
x
Quantile cutoff for the vocabulary in (0, 100]
if not NULL, a corpus filter
NULL
list of terms
# NOT RUN { data(novels_excerpts) stylest_terms(novels_excerpts$text, novels_excerpts$author, vocab_cutoff = 50) # }
Run the code above in your browser using DataLab