【发布时间】:2020-02-21 17:10:16
【问题描述】:
我正在尝试从类似于以下示例的收益电话文本生成结构:
"Operator
Ladies and gentlemen, thank you for standing by. And welcome to XYZ Fourth Quarter 2019 Earning Conference Call. At this time, all participants are in a listen-only mode. After the speaker presentation, there will be a question-and-answer session. [Operator Instructions] Please be advised that today’s conference is being recorded. [Operator Instructions]
I would now like to hand the conference to your speaker today,Person1, Head of Investor Relations. Please go ahead, ma’am**
Person1
Hello everyone, blablablablabla. Now let's see what Person2 has to say.
Person2
Thank you and hello everyone. Blablablabla
Person3
I have no further remarks....thank you once again"
由此我生成了一个名为list1 = ['Person1','Person2','Person3'] 的列表。我生成了一个空数据框,其列名称为Person1、Person2 和Person3。我现在必须根据列表中的值提取Person1、Person2 和Person3 下面的文本并填写数据框。这可能吗?
【问题讨论】:
-
我已经格式化了你的代码部分,所以它很突出。但是,如果两个
"s 不是输入文件的一部分,请删除它们(我不知道)。此外,请提供示例输出以及您的尝试。