Last active
March 15, 2020 13:43
-
-
Save Niranjankumar-c/b7bf1c4ce5b26c44f0f88531cfa7d55a to your computer and use it in GitHub Desktop.
Removing punctuation of the text
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
# 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