stylest (version 0.1.0)

stylest_term_influence: Compute the influence of terms

Description

Compute the influence of terms

Usage

stylest_term_influence(model, text, speaker)

Arguments

model

stylest_model object

text

Text vector. May be a corpus_frame object

speaker

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

Value

data.frame with columns representing terms, their mean influence, and their maximum influence

Examples

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