I have a list (list of list) something like this.
[['oh', 'yea', 'makes', 'sense'], ['Estas', 'enfermedad', 'un', 'cargo', 'poltico', 'tu', 'como', 'pblico', 'jesuischarlieytal'], ['old', 'men', 'finally', 'date', 'sarcasmsun', 'mar', 'ist'], ['sarinas', 'chanted', 'peacefully', 'deny', 'hypocrisysat', 'mar', 'ist']]
I want to convert the lists into sentences
[[oh yea makes sense], [Estas enfermedad un cargo poltico tu como pblico jesuischarlieytal'], [old men finally sarcasmsun mar ist]]
I tried the below code. However it is not working correctly
a = tokenized_sentences2[0]
print(a)
['oh', 'yea', 'makes', 'sense']
print ' '.join(word[0] for word in a)
Could someone please help me on this?