I have a huge csv file that has a column with descriptions of user problems. Something like 1. "Please reset my password - User name is xxxx" 2. "My phone voicemail is not working" 3. "I have a broken desk"
I am trying to create a generator in python that reads this column and creates a generator with two words. So, in the above example, it should create a generator like this: ('Please reset', 'reset my', 'my password', 'password -',.... 'My phone', 'phone voicemail',... 'I have', 'have a'....)
Note that I am looking to create only generators, not lists, because the file is huge. I can create a generator with the words ('Please', 'reset', 'my', 'password'...), but I am not able to concatenate words.
I am using: word = (word for row in csv.reader(f) for word in row[3].lower().split()) to create the generator with words.