Recent submissions

Comment · 3 years ago
Im always forgetting how to use Patching and Mocking in python, so created a small MWE to remind myself of how to do it. Turns out it can do more than I thought.

Just posting her in case anyone else is always forgetting and needs a reference.

Comment · 4 years ago
I'd like to have a go at ingredient substitution next, that takes quantity into account (For instance 2 drops of vanilla essence, might be equivalent to 1/2 a vanilla pod)
Comment · 4 years ago
That would be nice, but at the moment the algo is at the mercy of the training dataset. The dataset doesn't distinguish adjectives from the ingredient, so this module doesn't :(
Comment · 4 years ago
Not yet, wanted to get something out there first. The model could do with a bit of improvement anyway.
Comment · 4 years ago
To be honest you might well be able to deal with it without ML and it certainly would be easier to transfer to other languages you are right. There are a couple of reasons though:

- I wanted to see if I could, I hadn't done any NLP before :) - Some ingredient strings can be complex or contain multiple quantities/ingredients e.g. "3 1/2 cups icing sugar, plus 1/2 cup for dusting". "3 ripe avocados or guacamole" - I am interested to see what can be done with the ingredient embedding, perhaps for ingredient substitution - Hopefully the ML algorithm can learn to identify the unit and quantity based on context rather than a fixed list of ingredients

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton