Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
This function return 0 if all nominal groups have the same form
pronoun or det+adj+noun               
Input=list of nominal group              Output=1 or 0                      

        def there_is_pronoun(list_nom_gr):
    """
    This function return 0 if all nominal groups have the same form
    pronoun or det+adj+noun               
    Input=list of nominal group              Output=1 or 0                      
    """

    #init
    flag = 0

    for i in list_nom_gr:
        if flag == 1 and (len(i) != 1 or find_cap_lettre(i[0]) == 1):
            return 1
        if len(i) == 1 and find_cap_lettre(i[0]) == 0:
            #flag==1 we have a pronoun
            flag = 1

    return 0
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/preprocessing.py   Dialogs(Download)
 
            #If the first one of the list is not a pronoun => OK
            if other_functions.there_is_pronoun(list_nominal_group + [nominal_group]) == 0:
 
                for j in list_nominal_group: