Learn R Programming

sumup (version 1.0.1)

create_output: Create Output for Sum Up

Description

Processes sentence-level Sum Up's output, assigns sentences to topics, calculates topic strengths, and organizes data into structured feedback categories.

Usage

create_output(sentence_complete_output, sentences_lda, settings)

Value

A structured list containing topic-wise feedback, strength, and quality assessments. If settings$output_json is TRUE, returns a JSON string.

Arguments

sentence_complete_output

A data frame containing sentence-level topic polarity scores.

sentences_lda

An LDA model object containing topic-term distributions.

settings

A list of settings containing parameters such as the number of topics, threshold values, scoring scale, and output format.

Details

This function processes Sum Up's output to assign sentences to topics based on a probability threshold. It calculates the topic strength based on sentence polarity and recency, categorizes topics by feedback quantity and quality, and includes unassigned feedback in a separate category.