re.sub(r'(?<!\S)(?:{})(?!\S)'.format("|".join(map(re.escape, stop_words))), '', whole_corpus)
Last updated 3 years ago