def _words_plus_punc(self):
no_punc_text = REGEX_REMOVE_PUNCTUATION.sub('<STR_LIT>', self.text)<EOL>words_only = no_punc_text.split()<EOL>words_only = set(w for w in words_only if len(w) > <NUM_LIT:1>)<EOL>punc_before = {'<STR_LIT>'.join(p): p[<NUM_LIT:1>] for p in product(PUNC_LIST, words_only)}<EOL>punc_after = {'<STR_LIT>'.join(p): p[<NUM_LIT:0>] for p in product(words_only, PUNC_LIST)}<EOL>words_punc_dict = punc_before<EOL>words_punc_dict.update(punc_after)<EOL>return words_punc_dict<EOL>
Returns mapping of form:
{
    'cat,': 'cat',
    ',cat': 'cat',
}