def clearOntology_labels(ontology_labels, word_list_to_clear, synonyms=
    False, split_from=None, split_since=None):
    """
    A Tool for clearing the ontology labels in order to improve the sequential match
    :param ontology_labels: list of ontology classes labels
    :param word_list_to_clear: a list of words to clear from ontology
    :param synonyms: if the 'ontology labels' is a single label or a group of labels (Synonyms)
    :param split_from: a list of words to split the labels. We take the second slice
    :param split_since: a list of words to split the labels. We take the first slice
    :return: a treated ontology_labels (in same order)
    """
    ontology_labels1 = ontology_labels
    if synonyms:
        for i in range(len(ontology_labels1)):
            for j in range(len(word_list_to_clear)):
                ontology_labels1[i] = list(map(lambda a: ' '.join(a.replace
                    (word_list_to_clear[j], '').split()), ontology_labels1[i]))
                if split_from != None:
                    for k in range(len(split_from)):
                        ontology_labels1[i] = list(map(lambda a: a.split(
                            split_from[k])[1], ontology_labels1[i]))
                if split_since != None:
                    for n in range(len(split_since)):
                        ontology_labels1[i] = list(map(lambda a: a.split(
                            split_since[n])[0], ontology_labels1[i]))
    if not synonyms:
        for j in range(len(word_list_to_clear)):
            ontology_labels1 = list(map(lambda a: ' '.join(a.replace(
                word_list_to_clear[j], '').split()), ontology_labels1))
        if split_from != None:
            for k in range(len(split_from)):
                ontology_labels1 = list(map(lambda a: a.split(split_from[k]
                    )[1], ontology_labels1))
        if split_since != None:
            for n in range(len(split_since)):
                ontology_labels1 = list(map(lambda a: a.split(split_since[n
                    ])[0], ontology_labels1))
    return ontology_labels1
