Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

NLP-B2-W5

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

In Kneser-Ney smoothing, what is the primary reason for using discounted probabilities in higher-order n-grams

a)

To ensure that all n-grams, including unseen ones, receive some probability mass.

b)

To reduce computational complexity in large language models.

c)

To penalize frequent n-grams and favor less common ones.

d)

To normalize the probability distribution so that it sums to one.

2.

Which of the following is true about the backoff mechanism in Kneser-Ney smoothing?

a)

It skips lower-order n-grams entirely if a higher-order n-gram has a non-zero probability.

b)

It backs off to lower-order n-grams by subtracting a fixed discount and redistributing the remaining probability.

c)

It only applies to n-grams that have been observed in the training data.

d)

It applies a constant probability mass to all lower-order n-grams irrespective of their context.

3.

In backoff smoothing technique, we use the bigrams if the evidence for trigram is insufficient.

a)

TRUE  

b)

FALSE

4.

Which of the following is a common application of the Naive Bayes classifier?

a)

Predicting stock prices using time series analysis.

b)

Spam detection in email filtering.

c)

Real-time object detection in video streams.

d)

Image classification tasks with large convolutional layers.

5.

Which of the following types of data is the Naive Bayes classifier particularly well-suited for?

a)

Data with a large number of missing values.

b)

Data with categorical features where the independence assumption holds reasonably well.

c)

Data with continuous features without any discretization.

d)

Data with a high level of interaction between features.

6.

Which of the following statements is true about the Naive Bayes classifier when applied to text classification tasks?

a)

It requires feature scaling to work effectively in text classification

b)

It cannot handle large vocabularies and is prone to overfitting

c)

It is particularly effective because the independence assumption is often reasonably valid in the bag-of-words model

d)

It is less effective than other classifiers due to its simplicity

7.

Which of the following is the primary goal of a classification algorithm?

a)

To assign input data to one of several predefined classes or categories

b)

To reduce the dimensionality of the data

c)

To group data points into clusters based on similarity

d)

To predict a continuous output variable

8.

Which of the following is an example of a binary classification problem?

a)

Assigning a genre to a movie (e.g., action, comedy, drama)

b)

Grouping customers into different segments based on purchasing behavior

c)

Categorizing emails as "spam" or "not spam."

d)

Predicting the price of a house based on its features

9.

Which of the following is NOT a commonly used evaluation metric for classification models?

a)

F1-Score

b)

Precision

c)

Mean Absolute Error (MAE)

d)

Accuracy

10.

Which classification algorithm is known for constructing decision boundaries by recursively splitting the feature space?

a)

Decision Tree

b)

Logistic Regression

c)

k-Nearest Neighbors (k-NN)

d)

Support Vector Machine (SVM)