Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
This function process adjectives after state verb                             
Input=sentence                        Output=second verb of the sentence         

        def state_adjective(sentence, vg):
    """
    This function process adjectives after state verb                             
    Input=sentence                        Output=second verb of the sentence         
    """

    #In case there is a state verb followed by an adjective
    if sentence:
        if vg.vrb_main[0] in ResourcePool().state and analyse_nominal_group.adjective_pos(sentence, 0) - 1 != 0:

            #Here we have juist to process adjectives, nominal groups are processed
            pos = analyse_nominal_group.adjective_pos(sentence, 0)
            adj_list = analyse_nominal_group.process_adj_quantifier(sentence[:pos - 1])
            vg.d_obj = [Nominal_Group([], [], adj_list, [], [])]
            sentence = sentence[pos - 1:]

            #Same as nominal groups but with adjectives
            conjunction = None
            while sentence[0] == 'or' or sentence[0] == ':but':
                if sentence[0] == 'or':
                    conjunction = 'OR'
                elif sentence[0] == ':but':
                    conjunction = 'BUT'
                sentence = sentence[1:]

                pos = analyse_nominal_group.adjective_pos(sentence, 0)
                adj_list = analyse_nominal_group.process_adj_quantifier(sentence[:pos - 1])
                #We put all adjectives in the direct complement
                vg.d_obj = vg.d_obj + [Nominal_Group([], [], adj_list, [], [])]
                vg.d_obj[len(vg.d_obj) - 1]._conjunction = conjunction
                sentence = sentence[pos - 1:]
    return sentence
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_sentence.py   Dialogs(Download)
 
    #In case there is a state verb followed by an adjective
    sentence = analyse_verbal_structure.state_adjective(sentence, vg)
 
    #We have to correct the mistake of the subject
                    analysis.sn[0].noun = [sentence[0]]
                    sentence = sentence[1:]
                    sentence = analyse_verbal_structure.state_adjective(sentence, vg)
 
    vg = analyse_verbal_structure.DOC_to_IOC(vg)
 
    #In case there is a state verb followed by an adjective
    sentence = analyse_verbal_structure.state_adjective(sentence, vg)
 
    #If there is a forgotten