utils.py 184 B

12345678
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. import re
  5. def remove_symbols(text):
  6. return re.sub(r'[^\w\s]', '', text)