def clean_symbols(text):
 result = text
 if isinstance(result, str):
  result = normalize(u'NFKD', result)
 result = re.sub(u'[ \\(\\)\\-_\\[\\]\\.]+', u' ', result).lower()
 result = re.sub(u'[^a-zA-Z0-9 ]', u'', result)
 return result

def clean_symbols ( text ) : result = text if isinstance ( result , str ) : result = normalize ( u'NFKD' , result ) result = re . sub ( u'[ \\(\\)\\-_\\[\\]\\.]+' , u' ' , result ) . lower ( ) result = re . sub ( u'[^a-zA-Z0-9 ]' , u'' , result ) return result
replaces common symbols with spaces .