
Structure Interview Transcript by Speaker
structure_interview.RdThis function structures an interview transcript to identify consecutive lines spoken by the same speaker. It uses run-length encoding (rle) after extracting speaker identifiers from bracketed tags in the text.
Value
An object of class "rle" containing information about
the lengths and values of consecutive lines spoken by the same
speaker. The values component contains speaker names, and
lengths indicates how many consecutive lines each speaker spoke.