Google Cloud Professional Machine Learning Engineer — Question 254

You work for a company that is developing an application to help users with meal planning. You want to use machine learning to scan a corpus of recipes and extract each ingredient (e.g., carrot, rice, pasta) and each kitchen cookware (e.g., bowl, pot, spoon) mentioned. Each recipe is saved in an unstructured text file. What should you do?

Answer options

Correct answer: A

Explanation

Option A is correct because it focuses on creating a dataset for entity extraction specifically for ingredients and cookware, which is the primary requirement of the task. Option B is incorrect as multi-label classification does not suit the need for entity extraction. Option C is not ideal since it relies on the Natural Language API without the structured approach of training a custom model. Option D overcomplicates the task by creating an excessive number of entities instead of focusing on the two categories needed.