wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

NLP_8_RNN

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.
What is the purpose of language models in NLP?
a)
To determine the probability of a sequence of words
b)
b) To translate text from one language to another
c)
c) To generate semantic embeddings
d)
d) To generate random sentences
e)
e) To predict the next word given a sequence of words
2.
What is the main limitation of bag of words techniques in encoding document vectors?
a)
a) They cannot handle large datasets
b)
b) They do not consider word order
c)
c) They require a lot of computational power
d)
d) They are always less accurate than other techniques
e)
e) They are usually very sparse
3.
What is the intuition behind recurrence networks?
a)
a) The output is a function of the current input and the previous state
b)
b) The output is a function of the current input only
c)
c) The output is a function of the previous state only
d)
d) The output is a random function
4.
What is the main benefit of using static word embeddings in language models?
a)
a) To improve the accuracy of language models
b)
b) To reduce the computational complexity of language models
c)
c) To handle large datasets more efficiently
d)
d) To generate random sentences
e)
e) Capture the contextual semantics
5.
What is the primary advantage of using Recurrent Neural Networks (RNNs) over traditional feed-forward neural networks in natural language processing?
a)
a) RNNs have a simpler architecture
b)
b) RNNs can process variable-length sequences
c)
c) RNNs require less training data
d)
d) RNNs are computationally less expensive
e)

RNNs are usually more accurate than FFNN

6.

In the context of an RNN cell, what does the term 'recurrence' refer to?

a)
a) Repeated application of the same function
b)
b) Feedback loop from output back to input
c)
c) Regular updating of network weights
d)
d) Reuse of the same layers for each input
e)
e) Feedback from the hidden state back to the input
7.

In RNNs, what is the key significance of the hidden state (h_t) at each time step?

a)
a) It holds the output of the network at that step
b)
b) It is the input for the next layer of the network
c)
c) It represents the 'memory' of the network up to that point
d)
d) It is used to calculate the backpropagation error
8.
What are the possible causes of the vanishing gradient problem in traditional RNNs?
a)
a) The repeated multiplication of gradients through the network layers
b)
b) The use of non-linear activation functions like sigmoid or tanh
c)
c) The limited memory capacity of RNNs
d)
d) The use of large learning rates during training
e)
e) The use of ReLU activation
9.

Which of the following is NOT True about RNNs

a)

The output of the RNN is always the same as h(t)

b)

The dimension of the weight matrix depends of the shape of the input x(t)

c)

The main activation function is either ReLU or tanh

d)

RNNs are designed to handle sequential data

e)

The hidden state accumulates memory from previous inputs

10.

Check the wrong statement :

a)

Training an RNN on very long sequences may easily result in vanishing Gradient problem

b)

In sequence labeling task, at each time step, the predicted probability distribution over the vocabulary is created using a softmax activation applied to the hidden layer output.

c)

In Language Modeling Task, the loss function at a given time step is calculated as the negative log probability of the correct target word in the vocabulary.

d)

The hidden state at the first time step is initialized to the embedding of the first word in the training sequence.

e)

In RNN Language Modeling Task, the objective is to maximize the probability of the correct word at the current time step, given the context seen so far.