Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Improperly Parsed Recipe Ingredients #202

Open
rkroll opened this issue Jul 18, 2013 · 2 comments
Open

Improperly Parsed Recipe Ingredients #202

rkroll opened this issue Jul 18, 2013 · 2 comments
Assignees
Labels

Comments

@rkroll
Copy link

rkroll commented Jul 18, 2013

I noticed when scanning the current database dump that there were recipes with bad content, namely in the form "1 bunch 1 bunch" where every ingredient is duplicated tuples. I performed a count of records with duplicated tuples or all blank lines for ingredients and identified the following:

  • 1 delishhh
  • 1 bbcgoodfood
  • 49 epicurious
  • 52858 tastykitchen
@funkatron
Copy link
Collaborator

Obviously something we need to fix. We'll need to make sure there isn't a
current bug in our spider chain that is causing this, and go back and fix
the issue for old stuff.

Rich, could you maybe paste in a few example records, including their _id?

On Thu, Jul 18, 2013 at 5:02 PM, Rich Kroll [email protected]:

I noticed when scanning the current database dump that there were recipes
with bad content, namely in the form "1 bunch 1 bunch" where every
ingredient is duplicated tuples. I performed a count of records with
duplicated tuples or all blank lines for ingredients and identified the
following:

  • 1 delishhh
  • 1 bbcgoodfood
  • 49 epicurious
  • 52858 tastykitchen


Reply to this email directly or view it on GitHubhttps://github.com//issues/202
.

@rkroll
Copy link
Author

rkroll commented Jul 18, 2013

Here are 3 tastykitchen & 1 epicurious recipe with improperly parsed ingredients

{ "_id" : { "$oid" : "5160d18696cc620d2615320c" }, "name" : "Caprese Empanadas", "ingredients" : "1-¾ ounce, weight 1-¾ ounce, weight\n2 cups 2 cups\n¼ teaspoons ¼ teaspoons\n½ cups ½ cups\n10 whole    10 whole\n5 ounces, weight 5 ounces, weight\n½ cups ½ cups\n1 whole 1 whole", "url" : "http://tastykitchen.com/recipes/appetizers-and-snacks/caprese-empanadas/", "image" : "http://static.tastykitchen.  com/recipes/files/2013/03/Caprese-Empanadas-by-clem-on-March-15-2013-410x273.jpg", "ts" : { "$date" : 1365299590596 }, "cookTime" : "PT20M", "source" : "tastykitchen", "recipeYield" : "10",             "datePublished" : "2013-03-15", "prepTime" : "PT15M", "description" : "Empanadas made with homemade vegan dough, filled with melty mozzarella, fresh tomatoes and basil." }
{ "_id" : { "$oid" : "5160d18996cc620d2615320d" }, "name" : "Sauteed Baby Spinach with Pine Nuts and Raisins", "ingredients" : "2 Tablespoons 2 Tablespoons\n2 teaspoons 2 teaspoons\n1 clove 1 clove\n2  Tablespoons 2 Tablespoons\n5 ounces, weight 5 ounces, weight\n¼ whole ¼ whole", "url" : "http://tastykitchen.com/recipes/sidedishes/sauteed-baby-spinach-with-pine-nuts-and-raisins/", "image" : "http:// static.tastykitchen.com/recipes/files/2013/03/Sauteed-Baby-Spinach-with-Pine-Nuts-and-Raisins-by-Colleen-410x273.jpg", "ts" : { "$date" : 1365299593079 }, "cookTime" : "PT10M", "source" :               "tastykitchen", "recipeYield" : "4", "datePublished" : "2013-03-07", "prepTime" : "PT5M", "description" : "Variations of spinach with pine nuts and raisins can be found on most Spanish tapas menus      these days. The key to making this dish over-the-top is just barely wilting the spinach and adding a squeeze of fresh lemon juice on top. Those two small details make a world of difference in texture   and flavor." }
{ "_id" : { "$oid" : "5160d1a696cc620d2615321a" }, "name" : "Sylvia’s Perfect Pie Crust", "ingredients" : "1-½ cup 1-½ cup\n3 cups 3 cups\n1 whole 1 whole\n5 Tablespoons 5 Tablespoons\n1 Tablespoon 1   Tablespoon\n1 teaspoon 1 teaspoon", "url" : "http://tastykitchen.com/recipes/desserts/sylviae28099s-perfect-pie-crust/", "image" : "http://static.tastykitchen.com/recipes/files/2009/10/Sylvias-Perfect- Pie-Crust.png", "ts" : { "$date" : 1365299622327 }, "cookTime" : "PT", "source" : "tastykitchen", "recipeYield" : "1", "datePublished" : "2009-06-19", "prepTime" : "PT45M", "description" : "I really    love flaky pie crust, and it’s always been a difficult quality for me to achieve, despite most people’s claims that their recipe is THE flakiest pie crust in existence.  This recipe, sent to me by my   friend Sylvia, is absolutely, positively a keeper." }
{ "_id" : { "$oid" : "51d1249f96cc62742b621d46" }, "name" : "Beans with Kale and Portuguese Sausage", "ingredients" : "\n\n\n\n\n\n\n\n\n\n\n\n\n\n", "url" : "http://www.epicurious.com/recipes/food/    views/Beans-with-Kale-and-Portuguese-Sausage-51175110", "image" : "http://www.epicurious.com/images/recipesmenus/2013/2013_july/51175110.jpg", "ts" : { "$date" : 1372660895053 }, "datePublished" :      null, "source" : "epicurious", "recipeYield" : "Makes 8 servings" }

@ghost ghost assigned andreasb Sep 2, 2013
andreasb added a commit to andreasb/openrecipes that referenced this issue Sep 2, 2013
…l caps ingredients as they are used to indicate sections. fictive-kin#202
andreasb added a commit to andreasb/openrecipes that referenced this issue Nov 12, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants