Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 3 MCQsNatural Language Processing with Probabilistic Models
What is the primary goal of calculating Minimum Edit Distance?
Not quite. Try another option.
Answer: To quantify the dissimilarity between two strings by counting operations
Minimum Edit Distance measures the minimum number of editing operations (insertion, deletion, substitution) needed to transform one string into another.
Question 2 of 50
Which of the following operations is NOT typically used in the Levenshtein distance algorithm?
Not quite. Try another option.
Answer: Transposition
Standard Levenshtein distance allows insertion, deletion, and substitution. Damerau-Levenshtein adds transposition.
Question 3 of 50
In the context of dynamic programming for edit distance, if source[i] equals target[j], what is the cost of substitution?
Not quite. Try another option.
Answer: 0
If the characters are identical, no substitution is needed, so the cost added is 0.
Question 4 of 50
What is the Minimum Edit Distance between the strings 'cat' and 'cut'?
Not quite. Try another option.
Answer: 1
One operation is required: substitute 'a' with 'u'.
Question 5 of 50
How does an autocorrect system typically identify candidate words for a misspelled word?
Not quite. Try another option.
Answer: By finding words within a certain edit distance threshold
Autocorrect generates candidates by looking for words in the dictionary that are 1 or 2 edit distances away from the misspelled input.
Question 6 of 50
Which algorithm is commonly used to efficiently calculate the Minimum Edit Distance?
Not quite. Try another option.
Answer: Dynamic Programming
Dynamic programming is used to fill a matrix of costs to find the optimal path of operations.
Question 7 of 50
In Part of Speech (POS) tagging, what is the 'Hidden' component in a Hidden Markov Model?
Not quite. Try another option.
Answer: The Part of Speech tags
In an HMM for POS tagging, the tags (states) are hidden, and the words (observations) are visible.
Question 8 of 50
What does the Markov Assumption state in the context of Markov Chains?
Not quite. Try another option.
Answer: The future state depends only on the current state
The Markov Assumption (specifically for a first-order chain) assumes that the probability of the next state depends only on the current state, not the entire history.
Question 9 of 50
What are 'Transition Probabilities' in an HMM?
Not quite. Try another option.
Answer: The probability of moving from one POS tag to another
Transition probabilities define the likelihood of a sequence of states, such as a Noun following a Determiner.
Question 10 of 50
What are 'Emission Probabilities' in an HMM used for POS tagging?
Not quite. Try another option.
Answer: P(word|tag)
Emission probability is the likelihood of observing a specific word given the current hidden state (POS tag).
Question 11 of 50
Which algorithm is used to find the most likely sequence of hidden states (POS tags) given a sequence of observations?
Not quite. Try another option.
Answer: The Viterbi Algorithm
The Viterbi algorithm is a dynamic programming algorithm used for decoding: finding the most probable sequence of hidden states.
Question 12 of 50
A text corpus is:
Not quite. Try another option.
Answer: A large, structured set of texts used for statistical analysis
A corpus is a large body of text used to train language models, calculate probabilities, and analyze linguistic patterns.
Question 13 of 50
In an N-gram language model, what is 'N'?
Not quite. Try another option.
Answer: The number of words in the sequence considered for probability
N represents the size of the window of words. A bigram has N=2, looking at the current word and one previous word.
Question 14 of 50
Which assumption simplifies the calculation of N-gram probabilities?
Not quite. Try another option.
Answer: The probability of a word depends only on the previous N-1 words
This is the Markov assumption applied to N-gram models to make computation feasible.
Question 15 of 50
How is the probability of a bigram P(w2 | w1) calculated from a corpus?
Not quite. Try another option.
Answer: Count(w1, w2) / Count(w1)
The probability of w2 following w1 is the count of the pair (w1, w2) divided by the total count of the history word w1.
Question 16 of 50
What is the main problem with N-gram models when N is very large?
Not quite. Try another option.
Answer: Data sparsity (many sequences have zero counts)
As N increases, the number of possible combinations grows exponentially, and most specific sequences will not appear in the training corpus.
Question 17 of 50
What technique is used to handle N-grams that have zero probability in the training data?
Not quite. Try another option.
Answer: Smoothing (e.g., Laplace Smoothing)
Smoothing techniques like Add-1 (Laplace) assign a small non-zero probability to unseen N-grams to prevent zero-probability errors.
Question 18 of 50
In Laplace (Add-1) smoothing, what is added to the denominator?
Not quite. Try another option.
Answer: The vocabulary size (V)
To normalize the probability after adding 1 to the numerator of every word type, the vocabulary size V must be added to the denominator.
Question 19 of 50
What does an autocomplete system try to maximize?
Not quite. Try another option.
Answer: P(next_word | previous_words)
Autocomplete predicts the most likely next word given the context of previous words.
Question 20 of 50
A Trigram model looks at how many previous words to predict the next word?
Not quite. Try another option.
Answer: 2
A trigram involves 3 words total (the target and 2 history words), so it looks at the previous 2 words.
Question 21 of 50
One-hot encoding of words results in vectors that are:
Not quite. Try another option.
Answer: Sparse and high-dimensional
One-hot vectors have a size equal to the vocabulary (high-dimensional) and contain mostly zeros (sparse).
Question 22 of 50
What is a major limitation of one-hot encoding for words?
Not quite. Try another option.
Answer: It does not capture semantic similarity between words
In one-hot encoding, all word vectors are orthogonal, so the distance between 'car' and 'bus' is the same as 'car' and 'apple'.
Question 23 of 50
Word embeddings typically represent words as:
Not quite. Try another option.
Answer: Dense vectors of real numbers
Embeddings are dense vectors (e.g., length 300) containing real numbers that capture semantic meaning.
Question 24 of 50
Which metric is commonly used to measure the similarity between two word embedding vectors?
Not quite. Try another option.
Answer: Cosine Similarity
Cosine similarity measures the cosine of the angle between two vectors, indicating how close they are in the semantic space.
Question 25 of 50
The Word2Vec model 'Skip-gram' architecture tries to predict:
Not quite. Try another option.
Answer: The context words given the target word
Skip-gram takes a central target word and tries to predict the surrounding context words.
Question 26 of 50
The Word2Vec model 'CBOW' (Continuous Bag of Words) architecture tries to predict:
Not quite. Try another option.
Answer: The target word given the context words
CBOW takes the surrounding context words and sums their vectors to predict the missing center word.
Question 27 of 50
What famous algebraic property is often cited to demonstrate the semantic capability of word embeddings?
Not quite. Try another option.
Answer: King - Man + Woman = Queen
This vector operation demonstrates that embeddings capture gender and royalty relationships.
Question 28 of 50
In the 'Noisy Channel Model' for spelling correction, P(x|w) represents:
Not quite. Try another option.
Answer: The probability of typing x given the intended word w
P(x|w) is the error model probability: the likelihood of generating the typo 'x' when the intended word was 'w'.
Question 29 of 50
When building an HMM for POS tagging, the sum of probabilities of all outgoing transitions from a single state must equal:
Not quite. Try another option.
Answer: 1
Probabilities are normalized; the sum of probabilities of transitioning to any possible next state must be 1.
Question 30 of 50
What is 'Perplexity' in the context of Language Models?
Not quite. Try another option.
Answer: A measure of how well a probability model predicts a sample
Perplexity is an intrinsic evaluation metric. Lower perplexity indicates a better model.
Question 31 of 50
Why do we use Log Probabilities instead of raw probabilities in N-gram calculations?
Not quite. Try another option.
Answer: To avoid arithmetic underflow
Multiplying many small probabilities results in extremely small numbers that computers cannot represent accurately (underflow). Adding logs avoids this.
Question 32 of 50
Which of the following describes the 'Start' token (<s>) in N-gram models?
Not quite. Try another option.
Answer: It gives context for the first word in the sentence
The start token allows the model to calculate the probability of a word being at the beginning of a sentence.
Question 33 of 50
What represents the 'Observations' in a POS HMM?
Not quite. Try another option.
Answer: The sequence of words in the text
In an HMM for POS tagging, we observe the words and try to infer the hidden tags.
Question 34 of 50
In Minimum Edit Distance, the 'backtrace' step is used to:
Not quite. Try another option.
Answer: Determine the actual sequence of operations (alignment)
While the forward pass calculates the cost, backtracing from the bottom-right of the matrix reveals which operations led to that cost.
Question 35 of 50
Which token is typically used to replace words not found in the training vocabulary?
Not quite. Try another option.
Answer: <UNK>
<UNK> (Unknown) is the standard token used to represent out-of-vocabulary words.
Question 36 of 50
A 'Unigram' model assumes that:
Not quite. Try another option.
Answer: Words are independent of context
A unigram model calculates probability based solely on word frequency, ignoring surrounding context.
Question 37 of 50
The dimensionality of a Word2Vec embedding vector is typically chosen by:
Not quite. Try another option.
Answer: The system designer (hyperparameter)
The dimension (e.g., 100, 300) is a design choice, unlike one-hot vectors which are fixed by vocabulary size.
Question 38 of 50
In the equation P(tag|word) ∝ P(word|tag) * P(tag), what is P(tag)?
Not quite. Try another option.
Answer: Prior probability
P(tag) represents the prior probability of the tag occurring, typically approximated by the transition probability from the previous tag.
Question 39 of 50
If we want to build a spell checker, which probability do we want to maximize according to Bayes' theorem?
Not quite. Try another option.
Answer: P(correction | typo)
We observe the typo and want to find the most probable correction given that typo.
Question 40 of 50
Which type of language model suffers most from the 'curse of dimensionality'?
Not quite. Try another option.
Answer: High-order N-gram model (e.g., 5-gram)
As N increases, the number of parameters grows exponentially, requiring exponentially more data to train effectively.
Question 41 of 50
What is the primary input to a neural network training a Word2Vec model?
Not quite. Try another option.
Answer: One-hot encoded vectors of words
The input layer usually receives one-hot vectors, which are then multiplied by the weight matrix to get the embedding.
Question 42 of 50
The term 'corpus' in NLP refers to:
Not quite. Try another option.
Answer: A body of text data
Corpus (plural: corpora) is the raw text data used to train models.
Question 43 of 50
In edit distance, if we assign a higher cost to substitution than insertion/deletion, it implies:
Not quite. Try another option.
Answer: Typing a wrong letter is considered worse than missing a letter
Costs reflect the penalty of an error; a higher cost makes that specific operation less likely to appear in the optimal path (minimum distance).
Question 44 of 50
What is the result of using a sliding window in N-gram generation?
Not quite. Try another option.
Answer: It creates a sequence of overlapping word chunks
A sliding window moves over the text to extract tokens for (w-1, w) pairs used in training.
Question 45 of 50
Which of these words likely has a vector closest to 'frog' in a well-trained embedding space?
Not quite. Try another option.
Answer: Toad
Embeddings capture semantic meaning; 'frog' and 'toad' share biological and contextual similarities.
Question 46 of 50
In an HMM, what connects hidden states to each other?
Not quite. Try another option.
Answer: Transition probabilities
Transition probabilities define the likelihood of moving from one hidden state to the next hidden state.
Question 47 of 50
What is 'Stupid Backoff' in the context of Language Models?
Not quite. Try another option.
Answer: A smoothing method that uses lower-order N-grams if higher-order ones are missing
If a trigram count is zero, the model 'backs off' to use the bigram probability (often multiplied by a constant like 0.4).
Question 48 of 50
Which application primarily utilizes Probabilistic Language Models?
Not quite. Try another option.
Answer: Speech Recognition
Language models help distinguish between acoustically similar words (e.g., 'recognize speech' vs 'wreck a nice beach') based on probability.
Question 49 of 50
In the context of Word Embeddings, what does 'Polysemy' refer to?
Not quite. Try another option.
Answer: Words with multiple meanings
Polysemy (e.g., 'bank' as a river side vs financial institution) is a challenge for static embeddings like Word2Vec, which assign one vector per word.
Question 50 of 50
If P(A|B) is the probability of tag A following tag B, this is an example of:
Not quite. Try another option.
Answer: Transition probability
It describes the transition between two hidden states (tags).
That's unit 3
Answer a few questions and your score shows up here.
Nearly through. Did unit 3 of INT344 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 3 of INT344 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.