Star(Any(), greedy=False), action=PropertyValueSet.return_higher_value), KeywordRule(condition=person_entity + Star(Any(), greedy=False) + lower + number_entity + Star(Any(), greedy=False) + movie + Star(Any(), greedy=False), action=PropertyValueSet.return_lower_value) ] person_basic_keyword_rules = [ KeywordRule(condition=(person_entity + Star(Any(), greedy=False) + where + birth_place + Star(Any(), greedy=False)) | (person_entity + Star(Any(), greedy=False) + birth_place + Star(Any(), greedy=False)), action=PropertyValueSet.return_birth_place_value), KeywordRule(condition=person_entity + Star(Disjunction(Any(), where), greedy=False) + birth + Star(Any(), greedy=False), action=PropertyValueSet.return_birth_value), KeywordRule(condition=person_entity + Star(Any(), greedy=False) + english_name + Star(Any(), greedy=False), action=PropertyValueSet.return_english_name_value), KeywordRule(condition=person_entity + Star(Any(), greedy=False) + introduction + Star(Any(), greedy=False), action=PropertyValueSet.return_person_introduction_value) ] movie_basic_keyword_rules = [ KeywordRule(condition=movie_entity + Star(Any(), greedy=False) + introduction + Star(Any(), greedy=False), action=PropertyValueSet.return_movie_introduction_value), KeywordRule(condition=movie_entity + Star(Any(), greedy=False) + release +
condition=my_entity + Star(Any(), greedy=False) + ((belongTo + Star(Any(), greedy=False) + campus) | (W("是") + Star(Any(), greedy=False) + campus + Star(Any(), greedy=False) + W("的"))) + Star(Any(), greedy=False), action=QuestionSet.belongTo_campus_question), Rule(condition_num=3, condition=my_entity + Star(Any(), greedy=False) + ((belongTo + Star(Any(), greedy=False) + faculty) | (W("是") + Star(Any(), greedy=False) + faculty + Star(Any(), greedy=False) + W("的"))) + Star(Any(), greedy=False), action=QuestionSet.belongTo_faculty_question), # 包含 Rule(condition_num=4, condition=my_entity + Star(Any(), greedy=False) + contain + Star(Disjunction(Any(), several), greedy=False) + campus + Star(Any(), greedy=False), action=QuestionSet.contain_campus_question), Rule(condition_num=4, condition=my_entity + Star(Any(), greedy=False) + contain + Star(Disjunction(Any(), several), greedy=False) + faculty + Star(Any(), greedy=False), action=QuestionSet.contain_faculty_question), Rule(condition_num=4, condition=my_entity + Star(Any(), greedy=False) + contain + Star(Disjunction(Any(), several), greedy=False) + specialty + Star(Any(), greedy=False), action=QuestionSet.contain_specialty_question), Rule(condition_num=4, condition=my_entity + Star(Any(), greedy=False) + contain + Star(Disjunction(Any(), several), greedy=False) + building +
KeywordRule(condition=person_entity + Star(Any(), greedy=False) + science_fiction + Star(Any(), greedy=False) + (movie | Star(Any(), greedy=False)), action=PropertyValueSet.return_fiction_value), KeywordRule(condition=person_entity + Star(Any(), greedy=False) + mystery + Star(Any(), greedy=False) + (movie | Star(Any(), greedy=False)), action=PropertyValueSet.return_mystery_value), KeywordRule(condition=person_entity + Star(Any(), greedy=False) + music + Star(Any(), greedy=False) + (movie | Star(Any(), greedy=False)), action=PropertyValueSet.return_music_value), KeywordRule(condition=person_entity + Star(Any(), greedy=False) + romance + Star(Any(), greedy=False) + (movie | Star(Any(), greedy=False)), action=PropertyValueSet.return_romance_value), KeywordRule(condition=person_entity + Star(Any(), greedy=False) + family + Star(Any(), greedy=False) + (movie | Star(Any(), greedy=False)), action=PropertyValueSet.return_family_value), KeywordRule(condition=person_entity + Star(Any(), greedy=False) + war + Star(Any(), greedy=False) + (movie | Star(Any(), greedy=False)), action=PropertyValueSet.return_war_value), KeywordRule(condition=person_entity + Star(Any(), greedy=False) + TV + Star(Any(), greedy=False) + (movie | Star(Any(), greedy=False)), action=PropertyValueSet.return_tv_value) ] compare_keyword_rules = [ KeywordRule(condition=person_entity + Star(Any(), greedy=False) + higher + number_entity + Star(Any(), greedy=False) + movie + Star(Any(), greedy=False), action=PropertyValueSet.return_higher_value), KeywordRule(condition=person_entity + Star(Any(), greedy=False) + lower + number_entity + Star(Any(), greedy=False) + movie + Star(Any(), greedy=False), action=PropertyValueSet.return_lower_value) ] person_genre_type_rules = [ KeywordRule(condition=person_entity + Star(Any(), greedy=False) + comedy + actor + Star(Any(), greedy=False), action=PropertyValueSet.return_comedian_iris), KeywordRule(condition=person_entity + Star(Any(), greedy=False) + action + actor + Star(Any(), greedy=False), action=PropertyValueSet.return_kungfuactor_iris) ] person_basic_keyword_rules = [ KeywordRule(condition=(person_entity + Star(Any(), greedy=False) + where + birth_place + Star(Any(), greedy=False)) | (person_entity + Star(Any(), greedy=False) + birth_place + Star(Any(), greedy=False)), action=PropertyValueSet.return_birth_place_value), KeywordRule(condition=person_entity + Star(Disjunction(Any(), where), greedy=False) + birth + Star(Any(), greedy=False), action=PropertyValueSet.return_birth_value), KeywordRule(condition=person_entity + Star(Any(), greedy=False) + english_name + Star(Any(), greedy=False), action=PropertyValueSet.return_english_name_value), KeywordRule(condition=person_entity + Star(Any(), greedy=False) + introduction + Star(Any(), greedy=False), action=PropertyValueSet.return_person_introduction_value) ] movie_basic_keyword_rules = [ KeywordRule(condition=movie_entity + Star(Any(), greedy=False) + introduction + Star(Any(), greedy=False), action=PropertyValueSet.return_movie_introduction_value), KeywordRule(condition=movie_entity + Star(Any(), greedy=False) + release + Star(Any(), greedy=False), action=PropertyValueSet.return_release_value), KeywordRule(condition=movie_entity + Star(Any(), greedy=False) + rating + Star(Any(), greedy=False), action=PropertyValueSet.return_rating_value), ]