How to extract ingredients and cookware from recipes?
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?
Community Votes
69% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The exam tests the ability to choose between a pre-trained Natural Language API and a custom AutoML model for a specific domain; the trap is assuming the pre-trained API will be sufficient for specialized terminology.
To extract specific entities like ingredients and cookware from unstructured recipe text, the best approach is to train a custom AutoML entity extraction model on Vertex AI. This method offers superior accuracy and control for specialized domains compared to using a pre-trained Natural Language API.
The most common wrong answer is C, choosing the Natural Language API. This is incorrect because the pre-trained API is designed for general entities and may not accurately identify specialized terms like specific ingredients or cookware.
Community Discussion (12 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option A is correct because it involves creating a custom Named Entity Recognition (NER) model using Vertex AI AutoML. By labeling examples for 'ingredient' and 'cookware', the model learns the specific context and vocabulary of the recipe domain, which is crucial for high accuracy. As noted in the comments, this approach provides superior control over the types of entities extracted compared to a general-purpose API.Why the Other Options Are Wrong
Option B is incorrect because multi-label classification categorizes the entire document, not extracting specific entities within the text. Option C is incorrect because the pre-trained Natural Language API is designed for general entities and may lack the precision for specialized cooking terms, potentially misclassifying items. Option D is incorrect because creating a separate entity for every single ingredient and cookware is impractical and would lead to a model with too many classes, violating best practices and potential platform limits.Community Comment Notes
Community comments strongly favor Option A, highlighting that custom entity extraction allows for the definition of specific domain entities. Several users noted that while Option C is easier, it lacks the precision for this specialized task. A key insight from the comments is that a custom model is necessary to handle the specific terminology of recipes effectively, which a general API might miss.Official Reference
Exam Strategy
When faced with a question about extracting specific information from a specialized domain, always prefer training a custom model (AutoML) over using a pre-trained API. The key is to identify if the entities are general or domain-specific.
Related Analysis
Practice All PMLE Questions
Access 65 questions with complete answers and detailed explanations.
View Full PMLE Practice Test →