flattenSelf | R Documentation |
Different transcription algorithms mark utterances in different ways. This function will combine consecutive utterances (or messages) by the same person into conversational turns. The user can also specify a gap in between messages to use to determine whether they should be combined or not.
flattenSelf(inputData, inputType, meetingId, speakerId, gapLength)
inputData |
data.frame output from either processZoomTranscript or processZoomChat |
inputType |
either 'transcript' or 'chat' |
meetingId |
character giving the name of the meeting identifier variable |
speakerId |
character giving the name of the speaker identifier variable |
gapLength |
integer giving the number of seconds for marking distinct turns by the same speaker. Consecutive utterances by the same speaker of greater than or equal to this value will be treated as different conversational turns. |
a data.frame that is the same format as inputData, but where the observations are the new, compressed conversational turns.
newChat = flattenSelf(inputData = sample_chat_processed[sample_chat_processed$batchMeetingId=="00000000001", ], inputType="chat", meetingId = "batchMeetingId", speakerId="userName", gapLength=120) newTranscript = flattenSelf(inputData = sample_transcript_processed[sample_transcript_processed$batchMeetingId=="00000000001", ], inputType="transcript", meetingId = "batchMeetingId", speakerId="userName", gapLength=120)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.