[HN Gopher] Show HN: PyIng - Ingredient parser
___________________________________________________________________
Show HN: PyIng - Ingredient parser
For far to long ingredient parsers been unavailable to the public.
Either due to obsene complexity:
https://github.com/nytimes/ingredient-phrase-tagger Or because of
the dreaded paywall: https://github.com/mtlynch/zestful-client
Wait no longer, I introduce PyIng. An easy to use python package
for changing this "2 ounces of spicy melon" into this {name: melon,
unit: ounces, qty: 2.0}. https://github.com/whitew1994WW/PyIng
Author : CokieMonster
Score : 36 points
Date : 2022-03-28 19:19 UTC (3 hours ago)
| Simon_O_Rourke wrote:
| Very cool, and long overdue. Any plans to try and scrape some
| recipes into it? I'm always looking for some way of submitting
| whatever is left in the larder and getting a list of potential
| meals.
| FarProfessor wrote:
| There's a great app for this! It's called Half Lemons (iOS
| only).
| daenz wrote:
| Cool! Do you plan on capturing modifiers like "spicy" or "large"
| ? Without those, I imagine a lot of dishes won't be quite the
| same.
| simonhamp wrote:
| Like machine learning algorithmic art pieces, could we now make
| algorithmic recipes?
|
| Would be fun to see what comes out the other side
| elil17 wrote:
| There was IBM Chef Watson
| neoncontrails wrote:
| Great question. Models for generating plausible recipes have
| existed in some form for about a decade now.
|
| Arguably the first "successful" attempt at this was Chef
| Watson, which blew my mind when it was first released in 2014
| despite its well-documented tendency to suggest all kinds of
| spectacularly odd combinations of flavors and ingredients, like
| garlic ice cream and mayonnaise-spiked Bloody Marys[1].
|
| It's worth noting that preprocessing the textual inputs isn't
| entirely necessary to produce somewhat reasonable, ML-generated
| recipes. For example GPT-3 is capable of generating fairly
| interesting zero-shot recipes, despite having been trained on
| raw text data without any preliminary feature selection to
| label (e.g.) a recipe's ingredients.[2] Still not exempt from
| the occasional wacky, whimsical suggestion[3], but I, for one,
| wouldn't want my ML-generated recipes any other way.
|
| 1.
| https://www.google.com/amp/s/www.newyorker.com/magazine/2016...
|
| 2. https://github.com/LARC-CMU-SMU/RecipeGPT-exp
|
| 3. https://thenextweb.com/news/ai-generated-recipes-three-
| cours...
| inportb wrote:
| Yeah? https://www.youtube.com/watch?v=7sn8df97-JU
___________________________________________________________________
(page generated 2022-03-28 23:01 UTC)