Skip to contents

This function prints a formatted summary of the similarity report.

Usage

print_sim_report(report)

Arguments

report

A similarity report generated by gen_sim_report function

Value

NULL (invisibly). This function is called for its side effect of printing to the console.

Examples

speech1 <- "This is the first speech. It talks about important topics."
speech2 <- "This is the second speech. It covers similar subjects."
report <- gen_sim_report(speech1, speech2)
print_sim_report(report)
#> Similarity Report
#> =================
#> 
#> Individual Similarity Scores:
#>   topic: 0.9944
#>   lexical: 0.3571
#>   semantic: 0.5000
#>   structural: 0.9655
#>   stylistic: 0.9328
#>   sentiment: 0.9187
#> 
#> Combined Similarity Score: %.4f
#>  0.7780978
#> Plots have been generated for overall similarities and stylistic features.
#> Use 'report$similarity_plot' and 'report$stylistic_plot' to view them.