I have the following text:
I don't like to eat Cici's food (it is true)
I need to tokenize it to
['i', 'don't', 'like', 'to', 'eat', 'Cici's', 'food', '(', 'it', 'is', 'true', ')']
I have found out that the following regex expression (['()\w]+|\.)
splits like this:
['i', 'don't', 'like', 'to', 'eat', 'Cici's', 'food', '(it', 'is', 'true)']
How do I take the parenthesis out of the token and make it to an own token?
Thanks for ideas.