weird recipe made with bad reviews of the restaurant
Final output is based on the search of curryya from Yelp, which is one of my favorite restaurants.
And what I got from live coding (from presentation):
How I did :
1. First, by using BeautifulSoup, I scraped 20 worst reviews of Yelp ( by passing URL parameter -> url+ ?sort_by=rating_asc : shows reviews with fewer stars first )
(I was going to mash up best reviews and worst reviews, but I thought it might be interesting just concentrating on one side).
2. Since I am working on reviews of a restaurant, I thought it would be interesting using languages that are using on the recipes. Clearly, it has certain frequent words like words for measurements and certain types of an action verb. I set list of word for measurements and action verbs (which I bring from http://diannej.com/2013/100-verbs-for-recipes-from-julia-child/).
Then, I made a certain pattern (inspired by instructify.py from the class github repository).
A: list of action verbs for recipes
B: amount of the measurement: 1/2, 1, 2, 4, 8
C: words measurements : teaspoon, cup, gallon
D: adjectives that I scraped from reviews
E: noun phrases that I scraped from reviews
F : Ingredient phrase ( that I made by combining (B) + (C) + of + (D) + (E)
ie) 2 cups of teryaki
1) A + F + and + A + F
2) A + F + until it gets + D
3) A + F + with + D + F
4) A + F
5) Finally, + A + F