Created
March 23, 2018 15:42
-
-
Save mmmayo13/d7458bfab7a2c10bec9a5199f6711d1a 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
def replace_contractions(text): | |
"""Replace contractions in string of text""" | |
return contractions.fix(text) | |
sample = replace_contractions(sample) | |
print(sample) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment