def load_training_data_with_labels(filename):
    """load_training_data_with_labels loads all the training data
    from one file. The file should be in the following format:
        label\tdata
        label\tdata
        label\tdata
        ...
    """
    all_data = []
    all_labels = []

    with open(filename) as fin:
        for line in fin:
            label, data = line.strip().split('\t')
            all_labels.append(int(label))
            all_data.append(data)

    return all_data, all_labels