Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Function to delete the nominal group form the sentence                           

:param sentence: the original sentence
:param nominal_group: the nominal group to wipe off
:param nominal_group_pos: the position of the nominal group in the sentence            
:return: the modified sentence     

        def take_off_nom_gr(sentence, nominal_group, nominal_group_pos):
    """
    Function to delete the nominal group form the sentence                           
    
    :param sentence: the original sentence
    :param nominal_group: the nominal group to wipe off
    :param nominal_group_pos: the position of the nominal group in the sentence            
    :return: the modified sentence     
    """

    if nominal_group:

        #If we have to remove the complement
        if sentence[nominal_group_pos - 1] == 'of':
            sentence = sentence[:nominal_group_pos - 1] + sentence[nominal_group_pos + len(nominal_group):]
        else:
            sentence = sentence[:nominal_group_pos] + sentence[nominal_group_pos + len(nominal_group):]

        #If there is a nominal complement
        while len(sentence) > nominal_group_pos and sentence[nominal_group_pos] == 'of':
            nominal_group = find_sn_pos(sentence, nominal_group_pos + 1)
            sentence = take_off_nom_gr(sentence, nominal_group, sentence.index(nominal_group[0]))

    return sentence
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_verbal_structure.py   Dialogs(Download)
 
                #We take off the nominal group
                phrase = analyse_nominal_group.take_off_nom_gr(phrase, object, pos_object)
                #We will take off the proposal
                phrase = phrase[:phrase.index(proposal[0])] + phrase[phrase.index(proposal[0]) + 1:]
 
                #We take off the nominal group
                phrase = analyse_nominal_group.take_off_nom_gr(phrase, object, pos_object)
                conjunction = 'AND'
 
                    analyse_nominal_structure.fill_nom_gr(sentence, object, i + 1, conjunction)]
                #We take off the nominal group
                sentence = analyse_nominal_group.take_off_nom_gr(sentence, object, i + 1)
                conjunction = 'AND'
                #If there is a relative

src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_nominal_structure.py   Dialogs(Download)
 
        #We take off the nominal group
        phrase = analyse_nominal_group.take_off_nom_gr(phrase, sbj, phrase.index(sbj[0]))
 
        if phrase[0] in ResourcePool().relatives: