If I have a list containing strings like:
my_list = ['',
'EU NNP I-NP B-ORG',
'rejects VBZ I-VP O',
'British JJ I-NP B-MISC',
'. . O O',
'',
'Peter NNP I-NP B-PER',
'Blackburn NNP I-NP I-PER',
'',
'BRUSSELS NNP I-NP B-LOC',
'1996-08-22 CD I-NP O', '']
I would like to split this list into a nested list of tuples wherever there is a blank string in the list like the below
list_of_tuples = [[('EU NNP I-NP B-ORG'), ('rejects VBZ I-VP O'), ('British JJ I-NP B-MISC'),('. . O O')],
[('Peter NNP I-NP B-PER'), ('Blackburn NNP I-NP I-PER')],
[('BRUSSELS NNP I-NP B-LOC'),('1996-08-22 CD I-NP O', '')]]