Skip to content

Natural Language Processing in TensorFlow (DeepLearning.AI TensorFlow Developer Professional Certificate)

Course Assignments

Week 1 Quiz :Natural Language Processing in TensorFlow (DeepLearning.AI TensorFlow Developer Professional Certificate) Answers 2025

1. Question 1 In the lectures, what is the name of the layer used to generate the vocabulary? ❌ Tokenizer ❌ TextTokenizer ❌ WordTokenizer ✅ TextVectorization Explanation: TensorFlow’s TextVectorization layer builds the vocabulary and vectorizes text. 2. Question 2 Once you have generated a vocabulary, how do you encode a sentence into an integer sequence?… <a href="https://codeshala.io/platform/coursera/course/natural-language-processing-in-tensorflow-deeplearning-ai-tensorflow-developer-professional-certificate/assignment/week-1-quiz-natural-language-processing-in-tensorflow-deeplearning-ai-tensorflow-developer-professional-certificate-answers-2025/" rel="bookmark"><span class="screen-reader-text">Week 1 Quiz :Natural Language Processing in TensorFlow (DeepLearning.AI TensorFlow Developer Professional Certificate) Answers 2025</span></a>

Week 2 Quiz :Natural Language Processing in TensorFlow (DeepLearning.AI TensorFlow Developer Professional Certificate) Answers 2025

1. Question 1 To use word embeddings in TensorFlow, which layer is used? ❌ tf.keras.layers.Embed ✅ tf.keras.layers.Embedding ❌ tf.keras.layers.Word2Vector ❌ tf.keras.layers.WordEmbedding Explanation:tf.keras.layers.Embedding is the correct and only embedding layer in Keras. 2. Question 2 Using default settings, what does max_tokens do in TextVectorization? ❌ max_tokens − 2 ❌ max_tokens ❌ errors out ✅ It specifies… <a href="https://codeshala.io/platform/coursera/course/natural-language-processing-in-tensorflow-deeplearning-ai-tensorflow-developer-professional-certificate/assignment/week-2-quiz-natural-language-processing-in-tensorflow-deeplearning-ai-tensorflow-developer-professional-certificate-answers-2025/" rel="bookmark"><span class="screen-reader-text">Week 2 Quiz :Natural Language Processing in TensorFlow (DeepLearning.AI TensorFlow Developer Professional Certificate) Answers 2025</span></a>

Week 3 Quiz :Natural Language Processing in TensorFlow (DeepLearning.AI TensorFlow Developer Professional Certificate) Answers 2025

1. Question 1 When stacking LSTMs, how do you feed the next LSTM in the sequence? ❌ Ensure same number of units ❌ Do nothing ❌ return_sequences = True on all ✅ return_sequences = True only on units that feed another LSTM Explanation:Only LSTM layers feeding into another LSTM must output a sequence → set… <a href="https://codeshala.io/platform/coursera/course/natural-language-processing-in-tensorflow-deeplearning-ai-tensorflow-developer-professional-certificate/assignment/week-3-quiz-natural-language-processing-in-tensorflow-deeplearning-ai-tensorflow-developer-professional-certificate-answers-2025/" rel="bookmark"><span class="screen-reader-text">Week 3 Quiz :Natural Language Processing in TensorFlow (DeepLearning.AI TensorFlow Developer Professional Certificate) Answers 2025</span></a>

Week 4 Quiz :Natural Language Processing in TensorFlow (DeepLearning.AI TensorFlow Developer Professional Certificate) Answers 2025

1. Question 1 What function creates one-hot encoded arrays of labels? ✅ tf.keras.utils.to_categorical ❌ tf.keras.utils.SequenceEnqueuer ❌ tf.keras.utils.img_to_array ❌ tf.keras.preprocessing.text.one_hot Explanation:to_categorical() converts integer labels into one-hot encoded vectors, which is required for multi-class classification. 2. Question 2 Major drawback of word-based training vs character-based? ❌ Character generation is more accurate ✅ Because there are far more… <a href="https://codeshala.io/platform/coursera/course/natural-language-processing-in-tensorflow-deeplearning-ai-tensorflow-developer-professional-certificate/assignment/week-4-quiz-natural-language-processing-in-tensorflow-deeplearning-ai-tensorflow-developer-professional-certificate-answers-2025/" rel="bookmark"><span class="screen-reader-text">Week 4 Quiz :Natural Language Processing in TensorFlow (DeepLearning.AI TensorFlow Developer Professional Certificate) Answers 2025</span></a>