将一部电影的剧本中的角色名和台词分离开，并按照角色名进行分组。


电影名：《泰坦尼克号》
电影剧本：
Rose: "You have a gift, Jack: you do not know what it is. That painting is a gift, and it will be wasted on the likes of me. I'm an old woman. I have nothing to show for it, nothing, except my memories...I've wrestled with reality for 35 years, Doctor, and I'm happy to state I've finally won out over it." 
Jack: "Well, that's quite an achievement. I suppose congratulations are in order." 
Cal: "What happened? What's the matter here?" 
Bruce: "We got everything under control Mr. Cal. We're sending up a little wiring diagram. Looks like a ship." 
Henry: "Yeah, yeah, a big one." 
Tommy: "Jesus, Mary, and Joseph." 
Fabrizio: "It's not possible." 
Molly: "There's going to be a lot of happy steerage down below."
角色名：
Rose
Jack
Cal
Bruce
Henry
Tommy
Fabrizio
Molly


角色台词：
Rose: "You have a gift, Jack: you do not know what it is. That painting is a gift, and it will be wasted on the likes of me. I'm an old woman. I have nothing to show for it, nothing, except my memories...I've wrestled with reality for 35 years, Doctor, and I'm happy to state I've finally won out over it." 
Jack: "Well, that's quite an achievement. I suppose congratulations are in order." 
Cal: "What happened? What's the matter here?" 
Bruce: "We got everything under control Mr. Cal. We're sending up a little wiring diagram. Looks like a ship." 
Henry: "Yeah, yeah, a big one." 
Tommy: "Jesus, Mary, and Joseph." 
Fabrizio: "It's not possible." 
Molly: "There's going to be a lot of happy steerage down below." 

分组结果：

Rose: "You have a gift, Jack: you do not know what it is. That painting is a gift, and it will be wasted on the likes of me. I'm an old woman. I have nothing to show for it, nothing, except my memories...I've wrestled with reality for 35 years, Doctor, and I'm happy to state I've finally won out over it." 
Jack: "Well, that's quite an achievement. I suppose congratulations are in order." 
Cal: "What happened? What's the matter here?" 
Bruce: "We got everything under control Mr. Cal. We're sending up a little wiring diagram. Looks like a ship." 
Henry: "Yeah, yeah, a big one." 
Tommy: "Jesus, Mary, and Joseph." 
Fabrizio: "It's not possible." 
Molly: "There's going to be a lot of happy steerage down below."