Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
process which question                       
Input=type of sentence, the sentence      Output=class Sentence                  

        def w_quest_which(type, request, sentence):
    """
    process which question                       
    Input=type of sentence, the sentence      Output=class Sentence                  
    """

    #We start by finding the nominal group
    gr = preprocessing.determination_nominal_group(sentence, 0, 'of')

    #If the nominal group contain just 2 elements
    if len(gr) == 2:
        return y_n_ques(type, sentence[1], sentence[2:])
    else:
        #After the first gr if there is no nominal group
        if not analyse_nominal_group.find_sn_pos(sentence, len(gr)):
            for i in ResourcePool().sentence_starts:
                #If just after we have an a auxiliary
                if sentence[len(gr)] == i[0] and i[1] == '3':
                    #With subject => it is a yes or no question form
                    if analyse_nominal_group.find_sn_pos(sentence, len(gr) + 1):
                        analysis = y_n_ques(type, request, sentence[len(gr):])
                        nominal_gr = other_sentence(type, request, gr)
                        analysis.sv[0].d_obj = nominal_gr.sn
                        return analysis
                #Else it is like a statement
            return other_sentence(type, request, sentence)

        #Else if not, the first nominal group is the subject
        else:
            analysis = other_sentence(type, request, sentence[len(gr):])
            nominal_gr = other_sentence(type, request, gr)
            analysis.sv[0].d_obj = nominal_gr.sn
            return analysis
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_verbal_structure.py   Dialogs(Download)
                        #Exception for which
                        vg.vrb_sub_sentence = vg.vrb_sub_sentence + [
                            analyse_sentence.w_quest_which(W_QUESTION, 'choice', ['the'] + subsentence)]
                        vg.vrb_sub_sentence[len(vg.vrb_sub_sentence) - 1].data_type = SUBSENTENCE + '+' + \
                                                                                      vg.vrb_sub_sentence[len(