def clean_str_sst(string):
 string = re.sub("[^A-Za-z0-9(),!?\\'\\`]", ' ', string)
 string = re.sub('\\s{2,}', ' ', string)
 return string.strip().lower()

def clean_str_sst ( string ) : string = re . sub ( "[^A-Za-z0-9(),!?\\'\\`]" , ' ' , string ) string = re . sub ( '\\s{2,}' , ' ' , string ) return string . strip ( ) . lower ( )
tokenization/string cleaning for the sst dataset .