I have managed to create 2 lists from text documents. The first is my bi-gram list:
keywords = [\'nike shoes\',\'nike clothing\', \'nike black\', \'nike white\']
You can do it in steps. First define a helper function:
def removeStop(bigram, stops): return ' '.join(w for w in bigram.split() if not w in stops)
And then:
[removeStop(i,new_stops) for i in new_keywords]