log.nikhil.io

  • About
  • Archive
  • Feed

An Ingredient Parser using TensorFlow

Really cool stuff. Trained on the New York Times ingredients corpus (large 13.5MB CSV) and turns this

ingredients = [
  "3 large melons",
  "5 1/2 cups water",
  "2 cups flour",
]

into this

[
  {
    "name": "melons",
    "unit": None,
    "qty": 3.0
  },
  {
    "name": "water",
    "unit": "cups",
    "qty": 5.5
  },
  {
    "name": "flour",
    "unit": "cups",
    "qty": 2
  }
]

Tagged:

  • cool stuff
  • data science
  • jupyter
  • programming
  • python
  • tensorflow
  • todo
Posted 29th March 2022