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}.