Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
to eliminate redundancy in the phrase                              
Input=phrase                                             Output=phrase           

        def eliminate_redundancy(phrase):
    """
    to eliminate redundancy in the phrase                              
    Input=phrase                                             Output=phrase           
    """

    #init
    phrase_aux = []

    if phrase:

        phrase_aux = [phrase[0]]

        #We loop in phrase
        for i in range(1, len(phrase)):
            if phrase[i] != phrase[i - 1]:
                phrase_aux = phrase_aux + [phrase[i]]

    return phrase_aux
        


src/d/i/Dialogs-0.13/src/dialogs/verbalization/sentence_rebuilding.py   Dialogs(Download)
 
    #Eliminate redundancies if there are
    phrase = other_functions.eliminate_redundancy(phrase)
 
    #If it is a relative form
 
    #Eliminate redundancies if there are
    phrase = other_functions.eliminate_redundancy(phrase)
 
    if analysis.data_type == RELATIVE:
 
    #Eliminate redundancies if there are
    phrase = other_functions.eliminate_redundancy(phrase)
 
    #If it is a question about the origin