Skip to content

Instantly share code, notes, and snippets.

@mmmayo13
Created March 23, 2018 15:42
Show Gist options
  • Save mmmayo13/d7458bfab7a2c10bec9a5199f6711d1a to your computer and use it in GitHub Desktop.
Save mmmayo13/d7458bfab7a2c10bec9a5199f6711d1a to your computer and use it in GitHub Desktop.
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