Team members:
- Jason Qiu
- Jiayi Xu
- Mingyu Jin
This project parses online recipes into a useful data representation and features a conversational interface for user interaction.
The cookbook extracts recipes from TheMealDB.
The cookbook can answer queries and questions like:
- Navigation: Repeat, Next, Go back
- Show all ingredients
- How do I do that?
- What is a meatloaf?
- How do I beat an egg?
- What tools do I need?
- How long?
- What temperature?
- Recipe Transformation: Convert units, Translate portion sizes
Here is a video demonstration of this project.
- Clone this repository.
$ git clone [email protected]:jasonqiu212/cookbook.git
$ cd cookbook
- Install the required Python packages from
requirements.txt
.
We recommend using a virtual environment to run this project.
$ python3 -m pip install -r requirements.txt
- Download the
spacy
packageen_core_web_md
.
$ python3 -m spacy download en_core_web_md
- Start the chatbot.
$ python3 main.py
- The chatbot provides 2 methods to fetch a recipe. To test the chatbot, choose option 1 and use the following test recipes:
$ Welcome to your interactive cookbook! How would you like to fetch your recipe from TheMealDB?
$ [1] URL to a specific recipe.
$ [2] Search recipe by name.
$ > 1
$ Got it! Please input the URL to a recipe on TheMealDB.
$ > https://www.themealdb.com/api/json/v1/1/lookup.php?i=52845
Congratulations! You have successfully initialized your cookbook.
- TheMealDB
- Python libraries used: spaCy, ftfy, editdistance