In this task, you have to identify the named entities (NER) which are the ingredients required given its directions. Named entities are the names of the items without their quantity.

Let me give you an example: Preheat oven to 375 degrees., Boil syrup, sugar and shortening over medium heat, stirring constantly., Remove from heat., Gradually stir in flour and nuts., Drop by teaspoonfuls about 3 inches apart on lightly greased cookie sheet., Bake 5 to 6 min., Remove from oven and let stand 5 min, before removing from sheet., May be rolled into cylindrical shape while still hot., If cooled too much, return to oven for a minute., Yield: 4 dozen cookies.
The answer to this example can be: flour, nuts, corn syrup, shortening, brown sugar
Here is why: This is a good example, as we see the NER is generated correctly from the directions.

OK. solve this:
Melt the butter in a large lidded frying pan, add the onions and bay leaf, season with salt and pepper; cover the onions closely with a piece of buttered greaseproof paper then put the lid on the frying pan; cook the onions over a low heat for about 30 minutes until they are soft and golden (shake the pan occasionally to make sure they dont stick)., Roll the pastry to 1/4 inch thick on a lightly floured surface and use it to line an 8-9 inch diameter flan dish., Beat the eggs lightly in a large bowl and season with salt, pepper and nutmeg; stir the cream and milk into the beaten egg mixture., Drain the coked onions in a colander, remove the bay leaf and spread the onions over the pastry case; strain the egg mixture through a sieve over the onions., Bake the flan in the centre of an oven pre-heated to 400 degrees F / 200 degrees C / gas mark 6 for 35 40 minutes: when cooked the pastry should be golden and the filling set; the filling will sink slightly as the flan cools.
Answer:
shortcrust pastry, onion, butter, bay leaf, eggs, nutmeg, cream, milk, salt