80 likes | 229 Views
Information Extraction From Recipes. a ka Robochef v 2.0. Objectives. To convert semi-structured NLP into a structured, machine readable format “Chop the carrots with a large knife” -> CHOP( CARROTS) (KNIFE). Data. <RECIPE> <TI>Lychee Sherbet</TI> <IN>24 lychees</IN>
E N D
Information Extraction From Recipes aka Robochef v 2.0
Objectives • To convert semi-structured NLP into a structured, machine readable format • “Chop the carrots with a large knife” -> CHOP( CARROTS) (KNIFE)
Data • <RECIPE> • <TI>Lychee Sherbet</TI> • <IN>24 lychees</IN> • <IN>1 pk unflavored gelatine</IN> • <IN>1/4 cup cold water</IN> • <IN>1/3 cup milk</IN> • <IN>1/2 cup sugar</IN> • <IN>1/3 cup milk</IN> • <IN>1 cup half and half</IN> • <IN>1 teaspoon lemon juice</IN> • <PR>Peel and seed lychees. Squeeze lychees through 2 pieces of cheesecloth to obtain 1 cup of juice. Sprinkle gelatine over cold water and let stand for 5 minutes. Scald milk, add soaked gelatine, and stir until thoroughly dissolved. Add sugar, mixing well. Cool. Add milk and half and half. Stir in lychee and lemon juice. Freeze in ice-cream freezer.</PR> • </RECIPE>
NER task 1 cup half and half <UNIT> <AMT> <FOOD> <ACT> <FOOD> Squeezelychees through 2 pieces of cheesecloth … <UTENSIL>
Group Words • Words like “batter”, which are not explicit ingredients but combinations of ingredients • Words like “dry ingredients”, which refer to a large set of ingredients
Features • Current Word. • Previous Word, Next word. • Previous Label. • Parts of Speech for current word, previous word, and next word. • The appearance of numbers [0-9]. • Ends with “-ed”. • No vowels. • If the word is not contained in the list of ingredients. • If the words is not in the ingredients AND it is a noun • Word Length. • First occurrence. • The appearance of “mix-“ or “ingredient-”
Sematic Role Labeling • Squeezelychees through 2 pieces of cheesecloth • Squeeze(lychees)(cheesecloth) • Arguments assigned to actions using distance in parse tree
Coreference Resolution • Resolving all instances of “lychees” is easy • Use the ingredients list • Resolving “dough” to “flour”,”water” is harder. • Treat it as a machine translation problem • Use EM • Didn’t get time to evaluate