WILL: I’ve never seen wildlings do a thing like this. I’ve never seen a thing like this, not ever in my life.
WAYMAR ROYCE: How close did you get?
WILL: Close as any man would.
GARED: We should head back to the wall.
ROYCE: Do the dead frighten you?
GARED: Our orders were to track the wildlings. We tracked them. They won’t trouble us no more.
I want to get unique words spoken by each speaker and the counts
with open ("conv.txt", "r") as hfile:
sp = hfile.read()
print (sp)
dictionary = {}
for x, line in enumerate(sp):
line_list = sp.split(":")
dictionary[line_list[0]]=line_list[1]
I tried this this code but not working.
The output I want:
unique words spoken by each speaker WILL,GARED,ROYCE