This function is a wrapper around ai_text()
to compute salience scores for
topics in a corpus using a chat function.
Arguments
- .data
a character or quanteda::corpus object containing the documents to be summarized
- topics
character; a vector of topic names for which salience scores will be computed; the scores sum to 1 across all topics
- chat_fn
function; a chat function from ellmer
- ...
additional arguments passed to
chat_fn
- verbose
logical; output a progress indicator if
TRUE