示例#1
0
#2. In a medium bowl, stir together the cake mix and baking powder. Add eggs and oil,
#then mix until well blended. Stir in chocolate chips, or your choice of additions.
#Drop by rounded spoonfuls onto cookie sheets.
#3. Bake for 8 to 10 minutes in the preheated oven.

recipeName = "Cake Mix Cookies VII"
recipeSource = "http://allrecipes.com/recipe/cake-mix-cookies-vii/detail.aspx"

#TODO need to fix the prisms
ingredientsList = [
    ("1 (18.25 ounce) package yellow cake mix",
     kitchenState.Ingredient(contains=["cake_mix"],
                             homogenous=True,
                             amount="1 (18.25 ounce) package",
                             physicalObject=PhysicalObject(
                                 kitchenState.prism_from_point(3, 1, 1, 2),
                                 lcmId=1,
                                 tags=['cake']))),
    ("1 teaspoon baking powder",
     kitchenState.Ingredient(contains=["baking_powder"],
                             homogenous=True,
                             amount="1 teaspoon",
                             physicalObject=PhysicalObject(
                                 kitchenState.prism_from_point(5, 1, 1, 2),
                                 lcmId=2,
                                 tags=['bakingpowder']))),
    ("2 eggs",
     kitchenState.Ingredient(contains=["eggs"],
                             homogenous=True,
                             amount="2",
                             physicalObject=PhysicalObject(
示例#2
0
#1 teaspoon baking powder
#1 (3.9 ounce) package instant chocolate pudding mix 
#1 3/4 cups peanut butter chips
#
#1. Preheat oven to 350 degrees F (175 degrees C).
#2. In a large bowl, cream together the butter, white sugar and brown sugar until
#smooth. Beat in the eggs one at a time, then stir in the vanilla. Combine the flour, baking powder and instant pudding mix; stir into the creamed mixture. Fold in the peanut butter chips. Drop by rounded spoonfuls onto ungreased cookie sheets.
#3. Bake for 8 to 10 minutes in the preheated oven. Allow cookies to cool on baking sheet for 5 minutes before removing to a wire rack to cool completely.


recipeName = "Chocolate Peanut Butter Pudding Cookies"
recipeSource = "http://allrecipes.com/recipe/chocolate-peanut-butter-pudding-cookies/detail.aspx"

#replace None with Physical Objects
ingredientsList = [("1 cup butter, softened", kitchenState.Ingredient(contains=["butter"], homogenous=True, amount="1 cup",
                                                                   physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=1, tags=['butter']))),
                   ("1/4 cup white sugar", kitchenState.Ingredient(contains=["sugar"], homogenous=True, amount="1/4 cup",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=2, tags=['sugar']))),
                   ("3/4 cup packed brown sugar", kitchenState.Ingredient(contains=["brown_sugar"], homogenous=True, amount="3/4 cup",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=3, tags=['brownsugar']))),
                   ("1 teaspoon vanilla extract", kitchenState.Ingredient(contains=["vanilla_extract"], homogenous=True, amount="1 teaspoon",
                                                                  physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 1, 1, 2), lcmId=4, tags=['vanilla']))),
                   ("2 eggs", kitchenState.Ingredient(contains=["eggs"], homogenous=True, amount="2",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 3, 1, 2), lcmId=5, tags=['eggs']))),
                   ("2 1/4 cups all-purpose flour", kitchenState.Ingredient(contains=["flour"], homogenous=True, amount="2 1/4 cups",
                                                                         physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 3, 1, 2), lcmId=6, tags=['flour']))),
                   ("1 teaspoon baking powder", kitchenState.Ingredient(contains=["baking_powder"], homogenous=True, amount="1 teaspoon",
                                                                         physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 3, 1, 2), lcmId=8, tags=['bakingpowder']))),
                   ("1 (3.9 ounce) package instant chocolate pudding mix", kitchenState.Ingredient(contains=["pudding"], homogenous=True, amount="1 (3.9 ounce) package",
                                                                         physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 3, 1, 2), lcmId=9, tags=['pudding']))),
                   ("3/4 cups peanut butter chips", kitchenState.Ingredient(contains=["pb_chips"], homogenous=True, amount="3/4 cups",
示例#3
0
from kitchen import kitchenState, annotatedRecipe
from esdcs.groundings import PhysicalObject


recipeName = "Quick and Easy Meatloaf"
recipeSource = "http://www.cooks.com/rec/view/0,1941,152172-241204,00.html"


ingredientsList = [("1 lb. ground beef", kitchenState.Ingredient(contains=["beef"], homogenous=True, amount="1 pound",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['beef']))),
                   ("1/4 c. chopped onions", kitchenState.Ingredient(contains=["onions"], homogenous=True, amount="1/4 cup",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 1, 1, 2), lcmId=2, tags=['onions']))),
                   ("1 slice white bread", kitchenState.Ingredient(contains=["bread"], homogenous=True, amount="1 slice",
                                                                  physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 1, 1, 2), lcmId=3, tags=['bread']))),
                   ("1 egg, beaten", kitchenState.Ingredient(contains=["eggs"], homogenous=True, amount="1",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 3, 1, 2), lcmId=4, tags=['egg']))),
                   ("Ketchup", kitchenState.Ingredient(contains=["ketchup"], homogenous=True, amount="",
                                                                   physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=5, tags=['ketchup']))),
                   ("Salt and pepper", kitchenState.Ingredient(contains=["salt", "pepper"], homogenous=True, amount="",
                                                                   physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=5, tags=['salt_and_pepper']))),
                   ]

instructionsList = [("Preheat oven to 325 degrees.", "preheat(325)"),
                    ("Combine ground beef and chopped onions.", 
                     "pour(beef), pour(onions), mix()"),
                    ("Soak bread in beaten egg.", "pour(bread), pour(eggs), mix()"),
                    ("Combine with beef and onion.", "mix()"),
                    ("Shape into loaf.", "scrape()"),
                    ("Top with ketchup, salt, and pepper.", 
                     "pour(ketchup), (pour(salt) or pour(pepper))"),
                    ("Bake at 350 degrees for 1 hour.", "bake(60)")]
示例#4
0
from kitchen import kitchenState, annotatedRecipe
from esdcs.groundings import PhysicalObject

recipeName = "Easy Bread Pudding"
recipeSource = "http://www.cooks.com/rec/view/0,1740,149185-250203,00.html"


ingredientsList = [("4 slices buttered toast", kitchenState.Ingredient(contains=["bread"], homogenous=True, amount="3",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['bread']))),
                   ("1 (20 oz.) can peaches", kitchenState.Ingredient(contains=["peaches"], homogenous=True, amount="1 can",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['peaches']))),

                   ("3 eggs, beaten", kitchenState.Ingredient(contains=["eggs"], homogenous=True, amount="3",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['eggs']))),
                   ("1/3 c. sugar",  kitchenState.Ingredient(contains=["sugar"], homogenous=True, amount="1/3 cup",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['sugar']))),
                   ("Dash of salt", kitchenState.Ingredient(contains=["salt"], homogenous=True, amount="dash",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['salt']))),
                   ("1/2 tsp. nutmeg", kitchenState.Ingredient(contains=["nutmeg"], homogenous=True, amount="1/2 tsp",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['nutmeg']))),

                   ("1 tsp. vanilla", kitchenState.Ingredient(contains=["vanilla_extract"], homogenous=True, amount="1 tsp",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['vanilla']))),
                   ("3 c. milk", kitchenState.Ingredient(contains=["milk"], homogenous=True, amount="3 cups",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['milk']))),
]

instructionsList = [("Place toast in bottom of deep baking dish.", 
                     "pour(bread)"),
                    ("Drain peaches and save juice.", "noop()"),
                    ("Put peaches over top of toast.", "pour(peaches)"),
#
#1 cup peanut butter (your choice, smooth or chunky)
#1 cup granulated sugar
#1 large egg
#
#1 Mix peanut butter, sugar, and egg together until smooth.
#2 Drop by teaspoon onto cookie sheet two inches apart.  
#3 Press with fork; press again in opposite direction
#4 Bake 10 to 12 minutes at 350 degrees Fahrenheit.
#5 Do not brown; do not over bake.

recipeName = "Impossible Peanut Butter Cookies"
recipeSource = "http://www.food.com/recipe/impossible-peanut-butter-cookies-15411"

#replace None with Physical Objects
ingredientsList = [("1 cup peanut butter (your choice, smooth or chunky)", kitchenState.Ingredient(contains=["peanut_butter"], homogenous=True, amount="1 cup peanut butter",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['peanutbutter']))),
                   ("1 cup granulated sugar", kitchenState.Ingredient(contains=["sugar"], homogenous=True, amount="1 cup",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 1, 1, 2), lcmId=2, tags=['sugar']))),
                   ("1 large egg", kitchenState.Ingredient(contains=["eggs"], homogenous=True, amount="1",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 3, 1, 2), lcmId=3, tags=['eggs'])))]

instructionsList = [("1 Mix peanut butter, sugar, and eggs together until smooth.", "pour(peanut_butter), pour(sugar), pour(eggs), mix()"),
                    ("2 Drop by teaspoon onto cookie sheet two inches apart.", "scrape()"),
                    ("3 Press with form; press gain in opposite direction.", "noop()"),
                    ("4 Bake 10 to 12 minutes at 350 degrees Fahrenheit", "preheat(350), bake(10)"),
                    ("5 Do not brown; do not over bake.", "noop()")]

annotatedRecipeObject = annotatedRecipe.AnnotatedRecipe(recipeName, recipeSource, ingredientsList, instructionsList)

示例#6
0
#1 cup butter, softened
#1 1/2 cups white sugar
#1 egg
#1 teaspoon vanilla extract
#
#1. Preheat oven to 375 degrees F (190 degrees C). In a small bowl, stir together flour, baking soda, and baking powder. Set aside.
#2. In a large bowl, cream together the butter and
#sugar until smooth. Beat in egg and vanilla.  Gradually blend in the dry ingredients. Roll rounded teaspoonfuls of dough into balls, and place onto ungreased cookie sheets.
#3. Bake 8 to 10 minutes in the preheated oven, or until golden. Let stand on cookie sheet two minutes before removing to cool on wire racks.

recipeName = "Easy Sugar Cookies"
recipeSource = "http://allrecipes.com/recipe/easy-sugar-cookies/detail.aspx"

#TODO check the prism locations
ingredientsList = [("2 3/4 cups all-purpose flour", kitchenState.Ingredient(contains=["flour"], homogenous=True, amount="2 3/4 cups",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['flour']))),
                   ("1 teaspoon baking soda", kitchenState.Ingredient(contains=["baking_soda"], homogenous=True, amount="1 teaspoon",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 1, 1, 2), lcmId=2, tags=['bakingsoda']))),
                   ("1/2 teaspoon baking powder", kitchenState.Ingredient(contains=["baking_powder"], homogenous=True, amount="1/2 teaspoon",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 1, 1, 2), lcmId=3, tags=['bakingpowder']))),
                   ("1 cup butter, softened", kitchenState.Ingredient(contains=["butter"], homogenous=True, amount="1 cup",
                                                                  physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 1, 1, 2), lcmId=4, tags=['butter']))),
                   ("1 1/2 cups white sugar", kitchenState.Ingredient(contains=["sugar"], homogenous=True, amount="1 1/2 cup",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 3, 1, 2), lcmId=5, tags=['sugar']))),
                   ("1 egg", kitchenState.Ingredient(contains=["eggs"], homogenous=True, amount="1",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 3, 1, 2), lcmId=6, tags=['egg']))),
                   ("1 teaspoon vanilla extract", kitchenState.Ingredient(contains=["vanilla_extract"], homogenous=True, amount="1 teaspoon",
                                                                   physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 3, 1, 2), lcmId=7, tags=['vanilla'])))]

# this is where the second argument for pour comes in handy (since I want it in the cookie sheet)
# do I really want to scrape or should I just do it all in the cookie sheet?
示例#7
0
from kitchen import kitchenState, annotatedRecipe
from esdcs.groundings import PhysicalObject

recipeName = "Almond Crescent Cookies"

recipeSource = "http://simplyrecipes.com/recipes/almond_crescent_cookies/"

#replace None with Physical Objects
ingredientsList = [("1 cup butter", kitchenState.Ingredient(contains=["butter"], homogenous=True, amount="1 cup",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['butter']))),
                   ("2/3 cup sugar", kitchenState.Ingredient(contains=["sugar"], homogenous=True, amount="2/3 cup",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 1, 1, 2), lcmId=2, tags=['sugar']))),
                   ("1 teaspoon vanilla extract", kitchenState.Ingredient(contains=["vanilla_extract"], homogenous=True, amount="1 teaspoon",
                                                                  physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 1, 1, 2), lcmId=3, tags=['vanilla_extract']))),
					("1 teaspoon almond extract", kitchenState.Ingredient(contains=["almond_extract"], homogenous=True, amount="1 teaspoon",
                                                                  physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 1, 1, 2), lcmId=3, tags=['almond_extract']))),
                   ("1 cup almond flour", kitchenState.Ingredient(contains=["almond_flour"], homogenous=True, amount="1 cup",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 3, 1, 2), lcmId=4, tags=['almond flour']))),
                   ("1/4 cup powdered sugar", kitchenState.Ingredient(contains=["powdered_sugar"], homogenous=True, amount="1/4 cup",
                                                                   physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=5, tags=['powdered sugar']))),
                   ("2 1/2 cup flour", kitchenState.Ingredient(contains=["flour"], homogenous=True, amount="2 1/2 cup",
                                                                         physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 3, 1, 2), lcmId=6, tags=['flour'])))]
#"all-purpose flour" vs "flour"



#What should we do about the last 2 instructions? They are both unsupported/invalid.
#Will eventually move from strings to actual actions - NOT. We will pass the string to the compileAnnotation method in PlanningLanguage
instructionsList = [("Cream the butter and the sugar together until light and fluffy.", "pour(butter), pour(sugar), mix()"),
                    ("Add the extracts and mix.", "pour(vanilla_extract), pour(almond_extract), mix()"),
                    ("Add the flour and almond flour.", "pour(almond_flour), pour(flour)"),
示例#8
0
from kitchen import kitchenState, annotatedRecipe
from esdcs.groundings import PhysicalObject

recipeName = "Strassburgare"

recipeSource = "http://allrecipes.com/recipe/strassburgare/detail.aspx"

#replace None with Physical Objects
ingredientsList = [("1 cup butter, softened", kitchenState.Ingredient(contains=["butter"], homogenous=True, amount="1 cup",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['butter']))),
                   ("1/2 cup confectioners' sugar", kitchenState.Ingredient(contains=["confection_sugar"], homogenous=True, amount="1/2 cup",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 1, 1, 2), lcmId=2, tags=['confectionsugar']))),
                   ("1 1/2 tablespoons vanilla sugar", kitchenState.Ingredient(contains=["vanilla_sugar"], homogenous=True, amount="1 1/2 tablespoon",
                                                                  physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 1, 1, 2), lcmId=3, tags=['vanillasugar']))),
                   ("1 cup all-purpose flour", kitchenState.Ingredient(contains=["flour"], homogenous=True, amount="1 cup",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(9, 1, 1, 2), lcmId=4, tags=['flour']))),
                   ("1/2 cup potato flour", kitchenState.Ingredient(contains=["potato_flour"], homogenous=True, amount="1/2 cup",
                                                                   physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 3, 1, 2), lcmId=5, tags=['potatoflour']))),
                   ("1 drop red food coloring", kitchenState.Ingredient(contains=["food_coloring"], homogenous=True, amount="1 drop",
                                                                         physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=6, tags=['foodcoloring'])))
                   ]



#What should we do about the last 2 instructions? They are both unsupported/invalid.
#Will eventually move from strings to actual actions - NOT. We will pass the string to the compileAnnotation method in PlanningLanguage
instructionsList = [("Preheat oven to 325 degrees F (165 degrees C).", "preheat(325)"),
                    ("With an electric mixer, beat the butter and confectioners' sugar together in a bowl until smooth and creamy.", "pour(butter), pour(confection_sugar), mix()"),
                    ("beat in the vanilla sugar.", "pour(vanilla_sugar), mix()"),
                    ("In a separate bowl, whisk the flour with potato flour.", "pour(flour), pour(potato_flour), mix()"),
                    ("Stir the flour mixture into the butter mixture, about 1/4 cup at a time, until all the flour is mixed in.", "mix()"),
示例#9
0
from kitchen import kitchenState, annotatedRecipe
from esdcs.groundings import PhysicalObject

recipeName = "Quick and Easy Bread Pudding"
recipeSource = "http://www.cooks.com/rec/view/0,1940,155168-242204,00.html"


ingredientsList = [("3 eggs", kitchenState.Ingredient(contains=["eggs"], homogenous=True, amount="3",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['eggs']))),
                   ("2 cups milk or skim milk", kitchenState.Ingredient(contains=["milk"], homogenous=True, amount="2 cups",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['milk']))),

                   ("1/2 pound light brown sugar", kitchenState.Ingredient(contains=["sugar"], homogenous=True, amount="1/2 pound",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['sugar']))),
                   ("4 slices wheat or white bread",  kitchenState.Ingredient(contains=["bread"], homogenous=True, amount="4 slices",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['bread']))),
                   ("2 Tbsps. butter", kitchenState.Ingredient(contains=["butter"], homogenous=True, amount="2 tbsps",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['butter']))),]

instructionsList = [("Beat eggs lightly.", "pour(eggs), mix()"),
                    ("Add milk, sugar, crumbled bread and pour into a 1 quart baking dish.", "pour(milk), pour(sugar), pour(bread), scrape()") ,
                    ("Dot with butter and bake 40-45 minutes until firm and brown at 350 degrees.", "preheat(350), bake(40)"),
                    ("Serves 6.", "noop()")]

annotatedRecipeObject = annotatedRecipe.AnnotatedRecipe(recipeName, recipeSource, ingredientsList, instructionsList)
示例#10
0
#1 1/2 teaspoons baking powder 
#1/2 teaspoon salt
#1 cup chopped walnuts
#1/2 cup semisweet chocolate chips
#Directions
#Calculate
#Blonde Brownies
# In a mixing bowl, cream shortening and brown sugar. Add eggs, one at a time, beating well after each addition. Beat in vanilla. Combine flour, baking powder and salt; gradually add to the creamed mixture. Stir in nuts and chocolate chips. Spread into a greased 11-in. x 7-in. x 2-in. baking pan. Bake at 350 degrees F for 25-30 minutes or until a toothpick inserted near the center comes out clean. Cool on wire rack. Cut into bars.
#

recipeName = "Blonde Brownies"
recipeSource = "http://allrecipes.com/recipe/blonde-brownies/"

#TODO need to fix the prisms
ingredientsList = [("1/4 cup butter flavored shortening", kitchenState.Ingredient(contains=["shortening"], homogenous=True, amount="1/4 cup",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['shortening']))),
                   ("1 1/2 cup packed brown sugar", kitchenState.Ingredient(contains=["brown_sugar"], homogenous=True, amount="1 1/2 cup",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=1, tags=['brownsugar']))),
                   ("2 eggs", kitchenState.Ingredient(contains=["eggs"], homogenous=True, amount="2",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 3, 1, 2), lcmId=3, tags=['eggs']))),
                   ("1/2 teaspoon vanilla extract", kitchenState.Ingredient(contains=["vanilla_extract"], homogenous=True, amount="1/2 teaspoon",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=4, tags=['vanilla']))),
                   ("1 cup all-purpose flour", kitchenState.Ingredient(contains=["flour"], homogenous=True, amount="1 cup",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=5, tags=['flour']))),
                   ("1 1/2 teaspoons baking powder", kitchenState.Ingredient(contains=["baking_powder"], homogenous=True, amount="1 1/2 teaspoons",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=6, tags=['bakingpowder']))),
                   ("1/2 teaspoons salt", kitchenState.Ingredient(contains=["salt"], homogenous=True, amount="1/2 teaspoons",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=7, tags=['salt']))),
                   ("1 cup chopped walnuts", kitchenState.Ingredient(contains=["walnuts"], homogenous=True, amount="1 cup",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=8, tags=['walnuts']))),
                   ("1/2 cup semi-sweet chocholate chips", kitchenState.Ingredient(contains=["chocolate_chips"], homogenous=True, amount="1/2 cup",
示例#11
0
#1 (18 1/4 ounce) box chocolate cake mix
#1/2 cup vegetable oil
#2 eggs
#2 cups chocolate chips
#1/2 cup chopped nuts (optional)
#
#Combine cake mix, oil and eggs in a bowl and mix well.
#Stir in chips and nuts, if using.
#Drop by teaspoons on ungreased cookie sheet and bake at 350 degrees for 8-10 minutes.
#Upon removing from oven, let the cookies stand on sheet for two minutes, then cool on racks.
recipeName = "Cake Mix Cookies"
recipeSource = "http://www.food.com/recipe/cake-mix-cookies-15559"

#replace None with Physical Objects
ingredientsList = [("1 (18 1/4 ounce) box chocolate cake mix", kitchenState.Ingredient(contains=["cake_mix"], homogenous=True, amount="1 (18 1/4 ounce) box",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['cake']))),
                   ("1/2 cup vegetable oil", kitchenState.Ingredient(contains=["oil"], homogenous=True, amount="1/2 cup",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 1, 1, 2), lcmId=2, tags=['oil']))),
                   ("2 eggs", kitchenState.Ingredient(contains=["eggs"], homogenous=True, amount="2",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 3, 1, 2), lcmId=4, tags=['eggs']))),
                   ("2 cups chocholate chips", kitchenState.Ingredient(contains=["chocolate_chips"], homogenous=True, amount="2 cups",
                                                                   physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=5, tags=['chocolatechips']))),
                   ("1/2 cup chopped nuts (optional)", kitchenState.Ingredient(contains=["nuts"], homogenous=True, amount="1/2 cup",
                                                                         physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 3, 1, 2), lcmId=6, tags=['nuts'])))]

instructionsList = [("Combine cake mix, oil and eggs in a bowl and mix well.", "pour(cake_mix), pour(oil), pour(eggs), mix()"),
                    ("Stir in chips and nuts, if using.", "pour(chocolate_chips), mix(), pour(nuts), mix()"),
                    ("Drop by teaspoons on ungreased cookie sheet and bake at 350 degrees for 8-10 minutes.", "scrape(), preheat(350), bake(8)"),
                    ("Upon removing from oven, let the cookies stand on sheet for two minutes, then cool on racks", "noop()")]

annotatedRecipeObject = annotatedRecipe.AnnotatedRecipe(recipeName, recipeSource, ingredientsList, instructionsList)
示例#12
0
from kitchen import kitchenState, annotatedRecipe
from esdcs.groundings import PhysicalObject

#Peach Cobbler #1
# where did you get this from?

recipeName = "Peach Cobbler #1"

recipeSource = "http://www.internet.com/recipe.html"

# what is prism from point?
ingredientsList = [("1 (16 oz.) can sliced peaches with syrup", kitchenState.Ingredient(contains=["peaches"], homogenous=True, amount="1 (16 oz.) can",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['peaches']))),
                   ("1 c. sugar", kitchenState.Ingredient(contains=["sugar"], homogenous=True, amount="1 c.",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 1, 1, 2), lcmId=2, tags=['sugar']))),
                   ("1 c. self-rising flour", kitchenState.Ingredient(contains=["flour"], homogenous=True, amount="1 c.",
                                                                  physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 1, 1, 2), lcmId=3, tags=['flour']))),
                   ("1 c. milk", kitchenState.Ingredient(contains=["milk"], homogenous=True, amount="1 c.",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 3, 1, 2), lcmId=4, tags=['milk']))),
                   ("1 stick melted butter (optional)", kitchenState.Ingredient(contains=["butter"], homogenous=True, amount="1 stick",
                                                                   physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=5, tags=['butter'])))]

# for time ranges do I want to average?
# what should we do with the vanilla ice cream?
instructionsList = [("Preheat oven to 350 degrees.", "preheat(350)"),
                    ("Pour all ingredients into large bowl.", "pour(peaches), pour(sugar), pour(flour), pour(milk), pour(butter)"),
                    ("Mix until well blended.", "mix()"),
                    ("Pour into ungreased 13x9x2 aluminum pan.", "scrape()"),
                    ("Bake 30-45 minutes or until golden brown", "bake(37.5)")]

annotatedRecipeObject = annotatedRecipe.AnnotatedRecipe(recipeName, recipeSource, ingredientsList, instructionsList)
示例#13
0
#2/3 cup vegetable oil
#2/3 cup white sugar
#1/3 cup water
#1 (8 ounce) container sour cream
#1 cup semisweet chocolate chips
#
#1. Preheat oven to 350 degrees F (175 degrees C). Grease and flour a Bundt pan.
#2. In a bowl, mix the yellow cake mix, pudding mix, eggs, vegetable oil, sugar, and water.  Gently fold in the sour cream and chocolate chips.  Pour batter into the prpared Bundt pan.
#3. Bake in the preheated oven for 55 minutes.  Cool in pan for 10 minutes before transferring to cooling racks.

recipeName = "Easy Dump Cake"
recipeSource = "http://allrecipes.com/recipe/easy-dump-cake/detail.aspx"

#TODO chekc the prism locations
ingredientsList = [("1 (18.25 ounce) package yellow cake mix", kitchenState.Ingredient(contains=["cake_mix"], homogenous=True, amount="1 (18.25 ounce) package",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['cake']))),
                   ("1 (5.9 ounce) package instant chocolate pudding mix", kitchenState.Ingredient(contains=["pudding"], homogenous=True, amount="1 (5.9 ounce) package",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 1, 1, 2), lcmId=2, tags=['pudding']))),
                   ("4 eggs, beaten", kitchenState.Ingredient(contains=["eggs"], homogenous=True, amount="4",
                                                                  physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 1, 1, 2), lcmId=3, tags=['eggs']))),
                   ("2/3 cup vegetable oil", kitchenState.Ingredient(contains=["oil"], homogenous=True, amount="2/3 cup",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 3, 1, 2), lcmId=4, tags=['oil']))),
                   ("2/3 cup white sugar", kitchenState.Ingredient(contains=["sugar"], homogenous=True, amount="2/3 cup",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=5, tags=['sugar']))),
                   ("1/3 cup water", kitchenState.Ingredient(contains=["water"], homogenous=True, amount="1/3 cup",
                                                                   physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 3, 1, 2), lcmId=6, tags=['water']))),
                   ("1 (8 ounce) container sour cream", kitchenState.Ingredient(contains=["sour_cream"], homogenous=True, amount="1 (8 ounce) container",
                                                                   physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 3, 1, 2), lcmId=7, tags=['sourcream']))),
                   ("1 cup semisweet chocolate chips", kitchenState.Ingredient(contains=["chocolate_chips"], homogenous=True, amount="1 cup",
                                                                   physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 3, 1, 2), lcmId=8, tags=['chocolatechips'])))]
示例#14
0
from kitchen import kitchenState, annotatedRecipe
from esdcs.groundings import PhysicalObject

# Yellow Cake #1
# where did you get this from?

recipeName = "Yellow Cake #1"

recipeSource = "http://www.internet.com/recipe.html"

# what is prism from point?
ingredientsList = [("2/3 c. shortening", kitchenState.Ingredient(contains=["shortening"], homogenous=True, amount="2/3 c.",
                                                              physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 1, 1, 2), lcmId=1, tags=['shortening']))),
                   ("1 1/4 c. sugar", kitchenState.Ingredient(contains=["sugar"], homogenous=True, amount="1 1/4 c.",
                                                           physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 1, 1, 2), lcmId=2, tags=['sugar']))),
                   ("2 1/4 c. flour (self-rising)", kitchenState.Ingredient(contains=["flour"], homogenous=True, amount="2 1/4 c.",
                                                                  physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 1, 1, 2), lcmId=3, tags=['flour']))),
                   ("1 c. milk", kitchenState.Ingredient(contains=["milk"], homogenous=True, amount="1 c.",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(3, 3, 1, 2), lcmId=4, tags=['milk']))),
                   ("2 eggs", kitchenState.Ingredient(contains=["eggs"], homogenous=True, amount="2",
                                                      physicalObject=PhysicalObject(kitchenState.prism_from_point(5, 3, 1, 2), lcmId=5, tags=['eggs']))),
                   ("1 tsp. vanilla", kitchenState.Ingredient(contains=["vanilla_extract"], homogenous=True, amount="1 tsp.",
                                                                   physicalObject=PhysicalObject(kitchenState.prism_from_point(7, 3, 1, 2), lcmId=6, tags=['vanilla'])))]

# how do I represent grease and flour?
instructionsList = [("Preheat oven to 350 degrees.", "preheat(350)"),
                    ("Grease and flour 2 round pans or a 9 x 13 inch pan.", "grease(pan)"),
                    ("Add all ingredients.", "pour(shortening), pour(sugar), pour(flour), pour(milk), pour(eggs), pour(vanilla_extract)"),
                    ("Pour in pans and bake in oven for 30 minutes.", "scrape(), bake(30)")]

annotatedRecipeObject = annotatedRecipe.AnnotatedRecipe(recipeName, recipeSource, ingredientsList, instructionsList)