Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
recovers the list of adverbs                                       
Input=sentence                            Output=adverbs list                    

        def find_adv(phrase, vg):
    """
    recovers the list of adverbs                                       
    Input=sentence                            Output=adverbs list                    
    """

    #If phrase is empty
    if not phrase:
        vg.advrb = []

    #init
    i = 0

    #If the adverb is in the list
    while i < len(phrase):

        #Using a rule of grammar
        if phrase[i].startswith('every'):
            vg.advrb = vg.advrb + [phrase[i]]
            phrase = phrase[:i] + phrase[i + 1:]

        if phrase[i] in ResourcePool().adverbs:
            if i > 0 and phrase[i - 1] in ResourcePool().proposals:
                vg.i_cmpl = vg.i_cmpl + [
                    Indirect_Complement([phrase[i - 1]], [Nominal_Group([], [phrase[i]], [], [], [])])]
                phrase = phrase[:i - 1] + phrase[i + 1:]
            else:
                vg.advrb = vg.advrb + [phrase[i]]
                phrase = phrase[:i] + phrase[i + 1:]

        i += 1
    return phrase
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_sentence.py   Dialogs(Download)
    if sentence == [] or sentence[0] == '.' or sentence[0] == '?' or sentence[0] == '!':
        #We have probably the aim as an adverb
        analyse_verbal_structure.find_adv([request], vg)
        analysis.aim = 'thing'
        analysis.sv = [vg]
 
        #We have to take off adverbs form the sentence
        sentence = analyse_verbal_structure.find_adv(sentence, vg)
 
    #We perform the processing with the modal
 
    #We have to take off abverbs form the sentence
    sentence = analyse_verbal_structure.find_adv(sentence, vg)
 
    #In case there is a state verb followed by an adjective