Hi@zena,
In the below section you are trying to pass string but sting has no attribute read.
stopword = file_name
ar_list = stopword.read().split('\n')
So if you are trying to read data from a file then you can use the open function as given below.
stopword=open('file_name',"r")
ar_list = stopword.read().split('\n')