MauryaHub PYQ Practice

Introduction to Natural Language Processing (i-NLP) · Quiz 2 · Sep 2024

Introduction to Natural Language Processing (i-NLP) · Quiz 2 · Sep 2024

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 17 published solutions

Question 157 MCQ · 2.0 marks

FastText differs from traditional word embedding models like Word2Vec because it can handle out-of-vocabulary (OOV) words more effectively. Which of the following best explains how FastText achieves this capability?
6406533484169.
FastText predicts context words using an entire sentence rather than just nearby words.
6406533484170.
FastText generates embeddings by averaging multiple pre-trained word vectors.
6406533484171.
FastText breaks words down into smaller subword units (character n-grams) and creates embeddings based on these subwords, allowing it to estimate embeddings for unseen words.
6406533484172.
FastText uses neural networks with an additional layer dedicated to identifying unknown words.

A published solution is not available for this question yet.

Report a correction for Q157

Question 158 MCQ · 3.0 marks

Consider the sentences:
Source diagram or notation
In a transformer model, each word receives positional encoding. How will the positional encoding of "playful" differ across these sentences?
6406533484173.
It will be identical in all three sentences.
6406533484174.
It will vary in each sentence based on the position of "playful" within that sentence.
6406533484175.
It will vary only if "playful" has a different meaning.
6406533484176.
It will be identical but scaled by the number of words in each sentence.

A published solution is not available for this question yet.

Report a correction for Q158

Question 159 MCQ · 3.0 marks

Source diagram or notation
6406533484177.Source diagram or notation
6406533484178.Source diagram or notation
6406533484179.Source diagram or notation
6406533484180.Source diagram or notation
6406533484181.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q159

Question 160 MCQ · 3.0 marks

In the encoder of a transformer model, what are the sources of the queries (Q), keys (K), and values (V)?
6406533484182.
Q comes from the encoder output, K from the decoder input, and V from the output layer.
6406533484183.
Q comes from the decoder output, while K and V come from the encoder input.
6406533484184.
Q comes from the positional encoding, K from the input sequence length, and V from the output embeddings.
6406533484185.
Q, K, and V all come from the input embeddings representing the tokens in the input sequence.

A published solution is not available for this question yet.

Report a correction for Q160

Question 161 MSQ · 3.0 marks

Source diagram or notation
Given the following statements, select all that are correct:
6406533484186.Source diagram or notation
6406533484187.Source diagram or notation
6406533484188.Source diagram or notation
6406533484189.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q161

Question 162 MSQ · 3.0 marks

Consider the following statements about statistical-based (SMT) and example-based (EBMT) machine translation techniques. Select all statements that are correct:
6406533484190.
SMT uses probabilistic models to estimate the likelihood of translating one phrase to another.
6406533484191.
EBMT relies on a database of example translations and reuses similar examples to translate new sentences.
6406533484192.
SMT requires extensive linguistic rules and manually defined grammar to create effective translations.
6406533484193.
When EBMT encounters an unseen sentence, it decomposes the sentence into smaller segments and reuses similar examples from its database to generate translations.

A published solution is not available for this question yet.

Report a correction for Q162

Question 163 MSQ · 3.0 marks

Consider a scenario where you are fine-tuning a large language model using LoRA (Low-Rank Adaptation) and QLoRA (Quantized LoRA) techniques. Each technique has specific ways of reducing the model's memory and computational requirements. Select all statements that are correct about LoRA ans QLoRa.
6406533484194.
LoRA achieves computational efficiency by performing inference with only a subset of the model's original parameters, completely ignoring any layers that are not low-rank.
6406533484195.
QLoRA enables the model to dynamically switch between full and low-rank matrices during inference, improving accuracy while saving memory.
6406533484196.
QLoRA applies quantization to the low-rank matrices introduced by LoRA, combining memory efficiency through quantization with a reduced number of trainable parameters from low-rank adaptation.
6406533484197.
LoRA reduces the number of parameters by introducing low-rank matrices to approximate the weight updates, which minimizes the number of parameters that need to be stored and trained.

A published solution is not available for this question yet.

Report a correction for Q163

Question 164 NAT · 3.0 marks

You are analysing a collection of customer reviews using the Bag of Words (BoW) model. Here are three sample reviews: • Review 1: "This product is amazing, I absolutely love it!" • Review 2: "The product is terrible, I hate it." • Review 3: "Not the best, but it works okay."
Source diagram or notation
Assume that each unique word from the vocabulary appears in at least one of the three reviews and each unique word from reviews are added in the vocabulary. A word that appears in a review contributes 1 non-zero entry to that review's BoW vector.

A published solution is not available for this question yet.

Report a correction for Q164

Question 165 NAT · 3.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q165

Question 166 NAT · 3.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q166

Question 167 NAT · 3.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q167

Question 168 NAT · 3.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q168

Question 169 NAT · 3.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q169

Question 170 MSQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Which of the following are square matrices?
6406533484204.Source diagram or notation
6406533484205.Source diagram or notation
6406533484206.Source diagram or notation
6406533484207.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q170

Question 171 MCQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533484208.Source diagram or notation
6406533484209.Source diagram or notation
6406533484210.Source diagram or notation
6406533484211.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q171

Question 172 MCQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533484212.Source diagram or notation
6406533484213.Source diagram or notation
6406533484214.Source diagram or notation
6406533484215.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q172

Question 173 MSQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
At training time, consider a training sample, "this is good", where each word is a token. At the last time step (while processing "good"), the word probabilities output by the RNN for these three tokens are:
Source diagram or notation
Which of the following are true?
6406533484216.Source diagram or notation
6406533484217.Source diagram or notation
6406533484218.Source diagram or notation
6406533484219.Source diagram or notation
      **DLP** **Section Id :** 64065374264 **Section Number :** 10 **Section type :** Online **Mandatory or Optional :** Mandatory

A published solution is not available for this question yet.

Report a correction for Q173