Skip to content

Instantly share code, notes, and snippets.

@amita-shukla
Last active March 24, 2020 20:20
Show Gist options
  • Save amita-shukla/de791c6cd71da7a0116bf0c469d26def to your computer and use it in GitHub Desktop.
Save amita-shukla/de791c6cd71da7a0116bf0c469d26def to your computer and use it in GitHub Desktop.
import re
import string
punctuation = string.punctuation
def remove_punctuation(text):
return re.sub(r'[^a-zA-Z]',' ',text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment