Show HN: Over 2M cooking recipes ready for text generation
github.com
github.com
A glorious effort :) Reminds me of Douglas Adams' Nutrimatic machine:
The way it functioned was very interesting. When the _Drink_ button was pressed it made an instant but highly detailed examination of the subject's taste buds, a spectroscopic examination of the subject's metabolism and then sent tiny experimental signals down the neural pathways to the taste centers of the subject's brain to see what was likely to go down well. However, no one knew quite why it did this because it invariably delivered a cupful of liquid that was almost, but not quite, entirely unlike tea.
It's funny what a difference a generation makes. These days, we know to think of the Nutrimatic machine's neurometabolism probe is simply data farming. All we need is to substitute click history for microfloral ratios and we can have our own cupfuls of liquid that are almost, but not quite, entirely unlike tea.
I’ll be the judge of that. Recipe please :)
> Additional recipes were gathered from multiple cooking web pages, using automated scripts in a web scraping process.
Is it legal to republish these recipes without explicit permission from the origin sites? I would be wary of using these for anything without more clarity.
EDIT: There's no license information in the full dataset, but it does list the source URL of the scraped recipes. Summary of sites used:
value,count
www.cookbooks.com,896341
www.food.com,290565
www.epicurious.com,94398
www.myrecipes.com,64862
www.allrecipes.com,61398
www.yummly.com,51963
www.tasteofhome.com,51594
tastykitchen.com,50320
food52.com,48501
recipes-plus.com,20524“A mere listing of ingredients is not protected under copyright law. However, where a recipe or formula is accompanied by substantial literary expression in the form of an explanation or directions, or when there is a collection of recipes as in a cookbook, there may be a basis for copyright protection.”
Would that be breach of copyright? Do you hold the copyright over the new content? Can you claim the original was just inspiration and there are enough differences between the two items?
> ...where a recipe or formula is accompanied by substantial literary expression in the form of an explanation or directions...
re what @qw3rty01 said, ... It only applies if you're including all the stuff _around_ the core recipe.
This is why there are so many recipe apps that scrape web sites and don't get sued out of existence.
Source: Copyright.gov https://www.copyright.gov/help/faq/faq-protect.html
opinionated side note: A recipe is a set of instructions on how to alter and combine foods. This is "obviously" not worthy of copyright. A set of instructions on how to combine and alter text on the other hand (99.999% of software) is 100% copyrightable
"Fill pitcher with water, add lemon juice and sugar" is not going to pass muster as "substantial literary expression".
But if I republished your 5 page story about how your grandma used to make this lemonade and you remember drinking it on the porch of her cottage on Cape Cod, then I would be infringing on your copyright.
Just the ingredients, quantities, and procedure explained in a factual manner is explicitly not copyrightable in the US:
> A recipe is a statement of the ingredients and procedure required for making a dish of food. A mere listing of ingredients or contents, or a simple set of directions, is uncopyrightable. As a result, the Office cannot register recipes consisting of a set of ingredients and a process for preparing a dish.
Your explanations of why a process is followed, and other supplemental information beyond the instructions, can be copyrightable.
Remember that a recipe isn't just an instruction set for making food. For purposes of copyright it is also letters on a page generated by a person.
Especially creative language describing the recipe might be. Like paragraphs of text about the cultural context or how much you like it, or even especially poetic langauge describing how to combine the ingredients.
But not the instructions for preparation themselves, not simple instructions of how combine things in what order. No matter how specific, they are considered to be facts rather than creative expression. "ideas, procedures, processes, systems, and methods of operation" are not protected by copyright -- no matter how useful, no matter how much energy went into making them, that is not the standard.
Other countries may have different legal status than USA
https://lizerbramlaw.com/2015/04/07/copyright-protect-recipe...
> Second step is to fill Additional information. First of them - an email address.
> Someone may ask: 'Why Recipe Generator might need my email address?' That's a pretty good question, especially when you concern your privacy, but the answer is rather straightforward. Recipe Generator is quite a complex piece of software and it needs some time to prepare your recipe, especially when there are many orders. The generator will email you a recipe as soon as it's ready, so you don't have to keep hanging on the website.
> Recipe Generator is not only excellent artificial chef, but also very caring about it's customers privacy, so after he emails you a recipe, he immediately forgets the address (that's why you have to provide it many times).
I think you have a great tool if it works, pretty well monetised if you want to go that route, but I cannot tell if it works and am not willing to submit an email address, sorry. So, just some basic potential user feedback. Perhaps a tool for more, of course.
I also wouldn't mind waiting 3 minutes if there was a direction telling me so, with a timer.
Yes, you might be right about the timer, we'll think about changing it!
[0] Personally I wouldn't worry. It's open source and people can run it themselves if they're squeamish, and probably your time would be better spent on the engine itself :-)
I'm willing to make many concessions anyway to get something that is as good as Chef Watson was. Losing this was a real tragedy.
I have over 20 email addresses and only use 3 daily/phone notifications.
Not defending the practice, but I'm genuinely curious why this is a deal breaker.
Also we got access to GPT3 and it is remarkable how much better it is with just 2 example recipes compared to GPT2 fine tuned on hundreds of thousands of recipes.
Inputs tomato olive oil garlic salt sugar pepper
Ingredients 1 (10 ounce) can crushed tomato 1 tablespoon olive oil 2 garlic cloves 1/2 teaspoon salt (to taste) 1/4 teaspoon sugar (to taste) 1/4 teaspoon pepper (to taste)
Instructions Combine all ingredients and heat in saucepan.
----------
Not sure this is going to win any prizes.
Admittedly I put in some pretty tame ingredient choices but the recipe is essentially "eat ingredients".
You should now be able search for recipes and filter based on ingredients. Most results should be returned in few 10s of ms.
My wife and I cook most of our meals at home, and I have yet to encounter a recipe site I don't hate. All Recipes is about as good as it gets, but only because they have a print button at the top of every recipe that takes you to a printer friendly version.
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained("mbien/recipenlg")
model = AutoModelWithLMHead.from_pretrained("mbien/recipenlg")
FYI, I got this from running above lines: ...AutoModelWithLMHead is deprecated and will be removed in a future version...
FYI2, I just entered on your huggingface page "Get salt, apples and sugar and you get" and got "Get salt, apples and sugar and you get a soft, sticky mess. Then add water, add a lemon or lime and add a 1/8 teaspoon vanilla. Add a pinch of cinnamon and a dash of nutmeg. When you are ready", where is the recipe, what is this?? A bit more docs would be nice...We use custom control tokens, so you have to provide the specific structure of the recipe, simply typing it in the huggingface prompt won't work. The details are available in our papers about the solution.
A link would be kind.
They're both in README.md
Where are the actual recipes? Sorry if I missed it, but I've been opening folders and couldn't find a huge file with all the recipes (nor a folder with many files or similar).
I've also tried searching for common terms and I've only managed to match those against some sparse tests and URLs. Is the actual data not here and supposed to be fetched from their source urls?
However, I'm not sure 60 cups of vegetables is useful for the common family ;).
The recipe is in cups and pinches.
It is software, so it is not difficult to add a question to the start of the questionnaire and fix that horrible bug.
Is the exercise here to understand the structure of a recipe or make "valid" recipes?
"This is an archive of code which was used to produce dataset and results available in our INLG 2020 paper: RecipeNLG: A Cooking Recipes Dataset for Semi-Structured Text Generation"