# Define a function which takes 2 numberic list as an input
# and find the common element in the list

convs_list = open('D:\Hassaan Bashir\Embedded C Course\FH Collaboration\cornell_movie_dialogs_corpus\cornell movie-dialogs corpus\movie_conversations.txt').read().split('\n')


conv_line_list = []
_conv_list = ""
for conv_list in convs_list:
    _conv_list = conv_list.split(' +++$+++ ')[-1].replace("'", "").replace(" ","").replace("[","").replace("]","")
    conv_line_list.append(_conv_list.split(','))
       

conv_line_list[1:3]

7e75226c46a5632df962c3c4a5ab46084d964b52
<mask token>

<mask token>
for conv_list in convs_list:
    _conv_list = conv_list.split(' +++$+++ ')[-1].replace("'", '').replace(' ',
        '').replace('[', '').replace(']', '')
    conv_line_list.append(_conv_list.split(','))
conv_line_list[1:3]

convs_list = open(
    'D:\\Hassaan Bashir\\Embedded C Course\\FH Collaboration\\cornell_movie_dialogs_corpus\\cornell movie-dialogs corpus\\movie_conversations.txt'
    ).read().split('\n')
conv_line_list = []
_conv_list = ''
for conv_list in convs_list:
    _conv_list = conv_list.split(' +++$+++ ')[-1].replace("'", '').replace(' ',
        '').replace('[', '').replace(']', '')
    conv_line_list.append(_conv_list.split(','))
conv_line_list[1:3]

# Define a function which takes 2 numberic list as an input
# and find the common element in the list

convs_list = open('D:\Hassaan Bashir\Embedded C Course\FH Collaboration\cornell_movie_dialogs_corpus\cornell movie-dialogs corpus\movie_conversations.txt').read().split('\n')


conv_line_list = []
_conv_list = ""
for conv_list in convs_list:
    _conv_list = conv_list.split(' +++$+++ ')[-1].replace("'", "").replace(" ","").replace("[","").replace("]","")
    conv_line_list.append(_conv_list.split(','))
       

conv_line_list[1:3]
