def convert_truth(problem):
    """
    Converts the truth from breaches to cluster labeling
    :type problem: Problem
    :param problem: Problem to be clustered
    :rtype  int []
    :returns True Clustering
    """
    cluster_number = 0
    borders = problem.truth['switches']
    structure = problem.truth['structure']
    mapping = {'A1': 0, 'A2': 1, 'A3': 2, 'A4': 3, 'A5': 4}
    truth = []
    full_text = problem.text.text
    for fragment in problem.text.fragments:
        if len(structure) > 0:
            cluster_number = mapping[structure[0]]
        position = full_text.find(fragment.sentences[0])
        if position == -1 and len(fragment.sentences) > 1:
            position = full_text.find(fragment.sentences[1])
        if len(borders) > 0 and position > borders[0]:
            del borders[0]
            del structure[0]
        truth.append(cluster_number)
    return truth
