def get_pandas_df(filename):
    '''
    Load the data into Pandas.DataFrame object
    This will be used to convert data to torchtext object
    '''
    with open(filename, 'r') as datafile:
        data = [line.strip().split(',', maxsplit=1) for line in datafile]
        data_text = list(map(lambda x: x[1], data))
        data_label = list(map(lambda x: parse_label(x[0]), data))

    full_df = pd.DataFrame({"text":data_text, "label":data_label})
    return full_df

    Load the data into Pandas.DataFrame object
    This will be used to convert data to torchtext object
    
Model_CharCNN/without_torchtext/utils.py