Skip to content

Instantly share code, notes, and snippets.

@Niranjankumar-c
Last active March 15, 2020 13:43
Show Gist options
  • Save Niranjankumar-c/b7bf1c4ce5b26c44f0f88531cfa7d55a to your computer and use it in GitHub Desktop.
Save Niranjankumar-c/b7bf1c4ce5b26c44f0f88531cfa7d55a to your computer and use it in GitHub Desktop.
Removing punctuation of the text
# 4. Remove punctuation
main_content_string = main_content_string.translate(str.maketrans('', '', string.punctuation))
main_content_string = main_content_string.replace("‘", '').replace("’", '').replace("'", '')
main_content_string[:300]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment