def read_input_data(filename):
logging.info('<STR_LIT>', filename)<EOL>input_file = open(filename, '<STR_LIT:r>')<EOL>data = []<EOL>labels = []<EOL>for line in input_file:<EOL><INDENT>tokens = line.split('<STR_LIT:U+002C>', <NUM_LIT:1>)<EOL>labels.append(tokens[<NUM_LIT:0>].strip())<EOL>data.append(tokens[<NUM_LIT:1>].strip())<EOL><DEDENT>return labels, data<EOL>
Helper function to get training data