def convert_to_sequences(dataset, vocab):
start = time.time()<EOL>dataset_vocab = map(lambda x: (x, vocab), dataset)<EOL>with mp.Pool() as pool:<EOL><INDENT>output = pool.map(get_sequence, dataset_vocab)<EOL><DEDENT>end = time.time()<EOL>logging.info('<STR_LIT>'<EOL>.format(end - start, len(dataset)))<EOL>return output<EOL>
This function takes a dataset and converts
    it into sequences via multiprocessing