Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.29 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.29 KB

IntentRecognizer

The idea is to be able to ask a set of predefined questions and accurately recognize the intent of the user. The predefined intents are the following:

  • What is the weather like today? => Prints (Intent: Get Weather)
  • What is the weather like in Paris today? => Prints (Intent: Get Weather City)
  • What is the weather like in New York today? => Prints (Intent: Get Weather City)
  • Am I free at 13:00 PM tomorrow? ==> Prints (Intent: Check calendar)
  • Tell me an interesting fact. => Prints (Intent: Get Fact)

Requirements: CMake : https://cmake.org/

Prerequisites:

  1. Minimum CMake Version 3.10
  2. Since googltest is added a submodule, while cloning this repository use --recursive switch

Steps to build the project:

  1. Install **cmake ** (details on the website mentioned above)
  2. mkdir build
  3. cd build
  4. cmake ..
  5. make

Steps to run the unit test:

  1. cd build/test
  2. ./intent_test
  3. Or instead of Step 1-2 write the following: make test

Steps to run the code:

  1. cd build
  2. ./IntentRecognizer

Future Improvements

  1. We can read city names from a file instead of hardcoding values in code
  2. We can store all types of sentences a user types in some document
  3. We can write a script (python or equivalent) which would be trained by reading the document