def __init__(self, string="<STR_LIT>", token=["<STR_LIT>"]):
s = RE_PUNCTUATION.sub("<STR_LIT>", string) <EOL>s = re.sub(r"<STR_LIT>", "<STR_LIT:U+0020>", s)<EOL>s = re.sub(r"<STR_LIT>", "<STR_LIT>", s)<EOL>s = s.replace("<STR_LIT>", "<STR_LIT>")<EOL>s = s.split("<STR_LIT:U+0020>")<EOL>list.__init__(self, (Word(self, w, index=i) for i, w in enumerate(s)))<EOL>
A list of words, where punctuation marks are split from words.