stylest (version 0.1.0)

stylest_terms: Use vocab cutoff to select terms for fitting the model

Description

The same text, speaker, and filter should be used in this model as in fit_speaker to select the terms for the latter function.

Usage

stylest_terms(x, speaker, vocab_cutoff, filter = NULL)

Arguments

x

Corpus as text vector. May be a corpus_frame object

speaker

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

vocab_cutoff

Quantile cutoff for the vocabulary in (0, 100]

filter

if not NULL, a corpus filter

Value

list of terms

Examples

Run this code
# 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