Advertisement
Guest User

Minería de texto: remove punctuation by Indira Burga Menacho

a guest
Mar 31st, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. from string import punctuation
  2.  
  3.  
  4. def remove_punctuation(string):
  5.     chars = [c for c in string if not c in punctuation]
  6.     return "".join(chars)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement