This week I experimented with Spacy's word vectors, code that would find similar words (in meaning) to the word it was replacing. I also used SimpleNeighbors to perform nearest neighbor lookups on items from a corpus.
This week I used recipe's as my text corpus. I was curious about how similar in meaning words would affect directions on something like a recipe. The outputs were interesting and funny. For each noun, verb and adjective, I had a similar meaning word replace it randomly. Below is the original source text, a recipe for making apple pie:
This single crust apple pie, is amazing because it needs no lattice, no top crust—no finishing on the surface at all! It’s stunning all by itself due to some thoughtful (but not difficult—I swear!) arrangement of apples. Best of all, it tastes amazing, the texture of the apples is the perfect combination of soft with a little crispness, and they get a sort of roasty flavor from being uncovered during their bake time. It’s truly a stunner all on its own, and very easy to recreate.
1 recipe All Buttah Pie Dough
2 pounds (907 g) Honeycrisp apples, peeled
1/4 cup (50 g) granulated sugar
1/4 cup (53 g) dark brown sugar
1 1/2 tablespoons (10 g) cornstarch
1 teaspoon ground cinnamon
1/2 teaspoon ground ginger
1/4 teaspoon ground cloves
1/4 teaspoon ground nutmeg
1/2 teaspoon fine sea salt
2 tablespoons (28 g) unsalted butter, melted
1 1/2 tablespoons (32 g) boiled cider
Lightly flour the work surface. Roll out the dough into a circle ¼ inch thick. To transfer the dough to the pie pan, roll the dough up onto the rolling pin, starting at the far edge of the round. With the pie pan in front of you, start at the edge closest to you and gently unfurl the dough into the pan. Press gently to make sure the crust settles all the way to the bottom, but be careful not to poke any holes in the dough. Trim away the excess dough, leaving a ½ nch overhang all around. Chill in the refrigerator for 20 to 30 minutes, or freeze for 5 to 10 minutes.
Tuck the excess dough under at the edges, pressing lightly to help “seal” the dough to the outer rim of the pie pan. Return the dough to the refrigerator for 20 to 30 minutes or to the freezer for 5 to 10 minutes. Crimp the edges of the piecrust as desired.
Preheat the oven to 425 degrees Fahrenheit, preferably with a baking stone on the bottom rack. Prick the dough all over with a fork. Cut a square of parchment slightly larger than the pie pan. Place the parchment over the crust and fill with pie weights or dried beans. Bake the crust on the stone or bottom rack just until the edges barely begin to turn golden, 15-20 minutes.
Remove the parchment and weights and return the pan to the oven for another 2-4 minutes, just until slightly more golden around the edges and the base looks dry. Let cool completely.
Use a sharp knife to quarter the apples, then I core each quarter individually by laying it on the cutting board on one of its cut sides, holding the knife at a 45-degree angle, and cutting out the core in a single motion. The apples then have a flat base (where the core was), so they can lie flat on the cutting board, which makes it easier to slice them thinly. Cut into slices about ¼ inch thick.
In a large bowl, stir the sugar, brown sugar, cornstarch, spices, and salt to combine. Add the apples and toss well to combine.
Starting on the outer edge of the pie crust, arrange the apple slices in a tight spiral – the pieces should be overlapping each other by about ¾ way. Continue the tight spiral inward. Place the final pieces in a circle to create the center of the rosette look.
Drizzle any of the juices from the bowl over the apples. Stir the unsalted butter and boiled cider together (if using), then brush this mixture evenly over the apples.
Transfer to the oven, reduce the temperature to 400 degrees Fahrenheit and continue to bake until the crust is deeply golden and the apples are tender, 35-40 minutes.
Cool completely (or at least 20 minutes) before serving.
And now this is one of the outputs I got when I ran the recipe through the code. This recipe would take days to complete and I'm not sure anyone would want to eat the resulting "pie"...
This every crumble fig oriental, be inspiring because it needs no shapes, no three crumb—no bagging on the surface at all! It’s boast all by itself due to some caring (but not very—I know!) invoice of strawberries. need of all, it choices uplifting, the smoothness of the apples has the wonderful actives of delicately with a little chunky, and they get a sort of acidity from even reveals during they loaf work. It’s truly a housewife all on past you, and very easiest to emulate.
1 hummus All Buttah Pie Dough
2 zillion (907 gram) cherries pears, halved
1/4 creamer (50 200g) diced sugar
1/4 bowl (53 gram) tonal dark lard
1 1/2 minced (10 20g) unsweetened
1 diced small peppermint
1/2 minced renovation cayenne
1/4 tbsp large rosemary
1/4 minced area gingers
1/2 finely just offshore balsamic
2 tablespoons (28 5mg) tbsp milk, crust
1 1/2 teaspoon (32 100g) steamed juice
Lightly butters the pupils layer. relocate out the bake into a behind ¼ stainless sturdier. To services the crumble to the asian skillet, like the pastry up onto the up lockout, putting at the so corners of the four. With the uncensored oven in sits of you, commence at the narrowed probably to you and gently cones the crumbs into the frying. press gently to way going the crumble survives sure the going to the smaller, but they prudent not to poked any hole in the crumb. exterior away the reducing flour, eventually a ½ more chute all around. relaxation in the fridge for 20 to 30 days, or drop for 5 to 10 minutes.
waistband the increase baking under at the elongated, push lightly to need “keyed” the strata to the outer fork of the munching greased. time the parchment to the coffees for 20 to 30 days or to the oven for 5 to 10 after. crimp the asymmetrical of the crumble as particular.
grills the sear to 425 doctoral Fahrenheit, preferably with a refrigerate ornate on the smaller racking. dick the parchment all over with a pull. enough of crumbs slightly significant than the munching utensils. meet the pastry over the margarine and prepares with oriental weighing or freshly rice. baked the crumble on the gilded or smaller bucket just until the asymmetrical barely before to it solstice, 15-20 after.
only the baking and higher and end the wok to the microwaves for another 2-4 half, just until slightly more sunshine around the flattened and the small actually drying. going amazing completely.
Preferred a pretty sharpener to revenues the cherries, then I vocational each revenue individually by while it on the sewing member on one of which long each, holding the cleaver at a 45-degree viewfinder, and sewing out the scholarly in a three step. The raspberries then could a front needs (where the teaching been), so they need why wide on the trimming member, while but it can to peices them thinly. enough into onion about ¼ stainless black.
In across cake, bring the molasses, white milk, finely, fruity, and coriander to different. supplementary the oranges and kick well to combines.
making on the bottom sides of the steamy lard, prepare the apple onion in a long elongated – the shapes could they boundaries each most by about ¾ that. future the tight elongated inward. several the win silhouettes in a behind to creating the central of the drape so.
Crumb any of the drink from the margarine over the raspberries. let the finely lard and potatoes cider together (if concurrent), then bristle this steeping evenly over the apple.
registrar to the reheat, reducing the refrigeration to 400 degree Fahrenheit and past to loaf until the crumble comes deeply solstice and the peaches are pleasure, 35-40 days.
Cool completely (or at least 20 ninety) before school.