Google Cloud Professional Machine Learning Engineer — Question 200
You work for a hotel and have a dataset that contains customers’ written comments scanned from paper-based customer feedback forms, which are stored as PDF files. Every form has the same layout. You need to quickly predict an overall satisfaction score from the customer comments on each form. How should you accomplish this task?
Answer options
- A. Use the Vision API to parse the text from each PDF file. Use the Natural Language API analyzeSentiment feature to infer overall satisfaction scores.
- B. Use the Vision API to parse the text from each PDF file. Use the Natural Language API analyzeEntitySentiment feature to infer overall satisfaction scores.
- C. Uptrain a Document AI custom extractor to parse the text in the comments section of each PDF file. Use the Natural Language API analyzeSentiment feature to infer overall satisfaction scores.
- D. Uptrain a Document AI custom extractor to parse the text in the comments section of each PDF file. Use the Natural Language API analyzeEntitySentiment feature to infer overall satisfaction scores.
Correct answer: C
Explanation
The correct answer is C because using a Document AI custom extractor allows for precise parsing of the specific comments section, ensuring that relevant data is analyzed for sentiment. The analyzeSentiment feature is appropriate for determining an overall satisfaction score, while the analyzeEntitySentiment feature would not focus on the overall score but rather on entities within the comments, making options B and D less suitable.