Google Cloud Professional Machine Learning Engineer — Question 75

You need to train a natural language model to perform text classification on product descriptions that contain millions of examples and 100,000 unique words. You want to preprocess the words individually so that they can be fed into a recurrent neural network. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B because using pre-trained word embeddings allows the model to leverage semantic relationships between words, improving classification performance. Options A and D create sparse representations that may not capture meaning effectively, while C focuses only on frequency, ignoring context and relationships.