def tokenize(sent):
    return [x.strip() for x in re.split('(\W+)?', sent) if x.strip()]
Return the tokens of a sentence including punctuation.
dataset/ETHPy150Open fchollet/keras/examples/babi_rnn.py/tokenize