Process multiple transcript files in one workflow
Value
A named list keyed by transcript basename. Each element is the
analysis list returned by basic_transcript_analysis() or a list with an
error message when that file could not be processed.
Examples
transcript_dir <- system.file("extdata/test_transcripts", package = "engager")
files <- file.path(transcript_dir, c(
"ideal_course_session1.vtt", "ideal_course_session2.vtt"
))
results <- batch_basic_analysis(files)
#> BATCH: Batch Analysis Mode
#> =========================
#> FILE: Files: 2
#> DIR: Output: in memory
#> PRIVACY: Privacy: high
#>
#> Processing file 1/2: ideal_course_session1.vtt
#> ==> Starting Basic Transcript Analysis
#> ========================================
#> FILE: File: ideal_course_session1.vtt
#> DIR: Output: in memory
#> PRIVACY: Privacy: high
#>
#> Step 1/5: Loading transcript...
#> SUCCESS: Loaded 13 transcript entries
#> Step 2/5: Processing transcript...
#> SUCCESS: Processed transcript data
#> Step 3/5: Analyzing engagement...
#> SUCCESS: Calculated engagement metrics
#> Step 4/5: Creating visualizations...
#> SUCCESS: Created engagement visualizations
#> Step 5/5: Returning results in memory (no output directory supplied)
#>
#> COMPLETE: Basic analysis complete!
#> RESULTS: Results returned in memory
#> TIP: Next steps:
#> - Use show_available_functions() to see more options
#> - Use set_ux_level('intermediate') for more functions
#> SUCCESS: Completed: ideal_course_session1.vtt
#>
#> Processing file 2/2: ideal_course_session2.vtt
#> ==> Starting Basic Transcript Analysis
#> ========================================
#> FILE: File: ideal_course_session2.vtt
#> DIR: Output: in memory
#> PRIVACY: Privacy: high
#>
#> Step 1/5: Loading transcript...
#> SUCCESS: Loaded 12 transcript entries
#> Step 2/5: Processing transcript...
#> SUCCESS: Processed transcript data
#> Step 3/5: Analyzing engagement...
#> SUCCESS: Calculated engagement metrics
#> Step 4/5: Creating visualizations...
#> SUCCESS: Created engagement visualizations
#> Step 5/5: Returning results in memory (no output directory supplied)
#>
#> COMPLETE: Basic analysis complete!
#> RESULTS: Results returned in memory
#> TIP: Next steps:
#> - Use show_available_functions() to see more options
#> - Use set_ux_level('intermediate') for more functions
#> SUCCESS: Completed: ideal_course_session2.vtt
#>
#> COMPLETE: Batch analysis complete!
#> RESULTS: Results returned in memory
#> STATS: Successful: 2
#> ERROR: Failed: 0