master_time_list,
                    master_person_list)  #stopwords_free_sentences_list
                break
            elif qWords[j].lower() == 'when':
                q_flag = 1
                result = when.answering_when(
                    cleansedqList[i], stopwords_free_questions_list[i],
                    sentences_list, stopwords_free_sentences_list, hline_date,
                    master_month_list,
                    master_time_list)  #stopwords_free_sentences_list

                break
            elif qWords[j].lower() == 'where':
                q_flag = 1
                result = where.answering_where(
                    cleansedqList[i], stopwords_free_questions_list[i],
                    sentences_list, stopwords_free_sentences_list, hline_date,
                    master_loc_list)  #stopwords_free_sentences_list

                break
            elif qWords[j].lower() == 'why':
                q_flag = 1
                result = why.answering_why(cleansedqList[i],
                                           stopwords_free_questions_list[i],
                                           sentences_list,
                                           stopwords_free_sentences_list
                                           )  #stopwords_free_sentences_list

                break
            elif qWords[j].lower() == 'how':
                q_flag = 1
                result = how.answering_how(
            if qWords[j].lower()=='who' or qWords[j].lower()=='whom' or qWords[j].lower()=='whose'  :
                q_flag=1
                result=who.answering_who(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,master_person_list,master_prof_list) #stopwords_free_sentences_list
                break
            elif qWords[j].lower()=='what':
                q_flag=1
                result=what.answering_what(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,master_time_list,master_person_list) #stopwords_free_sentences_list
                break
            elif qWords[j].lower()=='when':
                q_flag=1
                result=when.answering_when(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,hline_date,master_month_list,master_time_list) #stopwords_free_sentences_list

                break
            elif qWords[j].lower()=='where':
                q_flag=1
                result=where.answering_where(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,hline_date,master_loc_list) #stopwords_free_sentences_list

                break
            elif qWords[j].lower()=='why':
                q_flag=1
                result=why.answering_why(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list) #stopwords_free_sentences_list

                break
            elif qWords[j].lower()=='how':
                q_flag=1
                result=how.answering_how(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,master_time_list,master_percent_list) #stopwords_free_sentences_list
                break
            elif qWords[j].lower()=='which':
                q_flag=1
                result=which.answering_which(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list)
                break
Exemplo n.º 3
0
                #who_list.append(cleansedqList[i])
                q_flag = 1
                answer_list.append(
                    when.answering_when(
                        cleansedqList[i], stopwords_free_questions_list[i],
                        stopwords_free_sentences_list,
                        hline_date))  #stopwords_free_sentences_list
                #result=when.answering_when(cleansedqList[i],stopwords_free_questions_list[i],stopwords_free_sentences_list,hline_date) #stopwords_free_sentences_list

                break
            elif qWords[j].lower() == 'where':
                #where_list.append(cleansedqList[i])
                q_flag = 1
                answer_list.append(
                    where.answering_where(
                        cleansedqList[i], stopwords_free_questions_list[i],
                        sentences_list, stopwords_free_sentences_list,
                        hline_date))  #stopwords_free_sentences_list
                #result=where.answering_where(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,hline_date) #stopwords_free_sentences_list

                break
            elif qWords[j].lower() == 'why':
                #why_list.append(cleansedqList[i])
                q_flag = 1
                answer_list.append(
                    why.answering_why(
                        cleansedqList[i], stopwords_free_questions_list[i],
                        sentences_list, stopwords_free_sentences_list,
                        hline_date))  #stopwords_free_sentences_list
                #result=why.answering_why(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,hline_date) #stopwords_free_sentences_list

                break
                q_flag=1
                answer_list.append(what.answering_what(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,hline_date)) #stopwords_free_sentences_list
                #result=what.answering_what(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,hline_date) #stopwords_free_sentences_list

                break
            elif qWords[j].lower()=='when':
                #who_list.append(cleansedqList[i])
                q_flag=1
                answer_list.append(when.answering_when(cleansedqList[i],stopwords_free_questions_list[i],stopwords_free_sentences_list,hline_date)) #stopwords_free_sentences_list
                #result=when.answering_when(cleansedqList[i],stopwords_free_questions_list[i],stopwords_free_sentences_list,hline_date) #stopwords_free_sentences_list

                break
            elif qWords[j].lower()=='where':
                #where_list.append(cleansedqList[i])
                q_flag=1
                answer_list.append(where.answering_where(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,hline_date)) #stopwords_free_sentences_list
                #result=where.answering_where(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,hline_date) #stopwords_free_sentences_list

                break
            elif qWords[j].lower()=='why':
                #why_list.append(cleansedqList[i])
                q_flag=1
                answer_list.append(why.answering_why(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,hline_date)) #stopwords_free_sentences_list
                #result=why.answering_why(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,hline_date) #stopwords_free_sentences_list

                break
            elif qWords[j].lower()=='how':
                #how_list.append(cleansedqList[i])
                q_flag=1
                answer_list.append(how.answering_how(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,hline_date)) #stopwords_free_sentences_list
                #result=how.answering_how(cleansedqList[i],stopwords_free_questions_list[i],sentences_list,stopwords_free_sentences_list,hline_date) #stopwords_free_sentences_list