Computer scienceData scienceNLPMain NLP tasksQuestion Answering

Rule-based dialogue systems

Theory

Cool Airlines

Report a typo

You've been commissioned to create the main menu of a dialogue system for "Cool Airlines". Botti, your conversational system, offers users several options for what it can show:

  • if the user enters "flight rules", your system should print The main rule is to be cool!
  • if the user enters "discounts", your system should print You are entitled to a 10% discount because you are cool!
  • if the user enters "my tickets", your system should print You have a ticket to New York tomorrow at 11:00.
  • if the user query does not fit into any category, your system should print Sorry, I didn't get you

Sample Input 1:

flight rules

Sample Output 1:

The main rule is to be cool!
Write a program in Python 3
intent = str(input())

# write your code here
___

Create a free account to access the full topic