Compute the influence of terms
stylest_term_influence(model, text, speaker)
stylest_model object
stylest_model
Text vector. May be a corpus_frame object
corpus_frame
Vector of speaker labels. Should be the same length as x
x
data.frame with columns representing terms, their mean influence, and their maximum influence
data.frame
# NOT RUN { data(novels_excerpts) speaker_mod <- stylest_fit(novels_excerpts$text, novels_excerpts$author) stylest_term_influence(speaker_mod, novels_excerpts$text, novels_excerpts$author) # }
Run the code above in your browser using DataLab