def batchify(batch):
    """Gather a batch of individual examples into one batch."""
    batch_spos, batch_sapos, batch_tpos, batch_tapos, batch_sents, batch_labels = zip(*batch)

    return batch_spos, batch_sapos, batch_tpos, batch_tapos, batch_sents, batch_labels