parameters: (string)
return_statement: return string.strip().lower()
docstring: Tokenization/string cleaning for all datasets except for SST.
      Original taken from https://github.com/yoonkim/CNN_sentence/blob/master/process_data.py
docstring_summary: Tokenization/string cleaning for all datasets except for SST.
      Original taken from https://github.com/yoonkim/CNN_sentence/blob/master/process_data.py
docstring_tokens: Tokenization / string cleaning for all datasets except for SST . Original taken from https : // github . com / yoonkim / CNN_sentence / blob / master / process_data . py
function: def clean_str(string):
      """
      Tokenization/string cleaning for all datasets except for SST.
      Original taken from https://github.com/yoonkim/CNN_sentence/blob/master/process_data.py
      """
      string = re.sub(r"[^A-Za-z0-9(),!?\'\`]", " ", string)
      string = re.sub(r"\'s", " \'s", string)
      string = re.sub(r"\'ve", " \'ve", string)
      string = re.sub(r"n\'t", " n\'t", string)
      string = re.sub(r"\'re", " \'re", string)
      string = re.sub(r"\'d", " \'d", string)
      string = re.sub(r"\'ll", " \'ll", string)
      string = re.sub(r",", " , ", string)
      string = re.sub(r"!", " ! ", string)
      string = re.sub(r"\(", " \( ", string)
      string = re.sub(r"\)", " \) ", string)
      string = re.sub(r"\?", " \? ", string)
      string = re.sub(r"\s{2,}", " ", string)
      return string.strip().lower()
function_tokens: def clean_str ( string ) : string = re . sub ( r"[^A-Za-z0-9(),!?\'\`]" , " " , string ) string = re . sub ( r"\'s" , " \'s" , string ) string = re . sub ( r"\'ve" , " \'ve" , string ) string = re . sub ( r"n\'t" , " n\'t" , string ) string = re . sub ( r"\'re" , " \'re" , string ) string = re . sub ( r"\'d" , " \'d" , string ) string = re . sub ( r"\'ll" , " \'ll" , string ) string = re . sub ( r"," , " , " , string ) string = re . sub ( r"!" , " ! " , string ) string = re . sub ( r"\(" , " \( " , string ) string = re . sub ( r"\)" , " \) " , string ) string = re . sub ( r"\?" , " \? " , string ) string = re . sub ( r"\s{2,}" , " " , string ) return string . strip ( ) . lower ( )