Last active
March 24, 2020 20:20
-
-
Save amita-shukla/de791c6cd71da7a0116bf0c469d26def to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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