Reading only the words of a specific speaker and adding those words to a list

后端 未结 2 1325
既然无缘
既然无缘 2021-01-28 06:08

I have a transcript and in order to perform an analysis of each speaker I need to only add their words to a string. The problem I\'m having is that each line does not start with

2条回答
  •  情话喂你
    2021-01-28 06:42

    Every time a speaker starts to speak, keep the current_speaker and decide what to do according to this speaker. Read the lines until the speaker changes.

提交回复
热议问题