wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

NLP Lecture II

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.
What is a binary bag of words?
a)
A) A bag used to store words
b)
B) A technique for text vectorization
c)
C) A type of vocabulary list
d)
D) A specific type of document
2.
Which vectorization technique takes word importance and frequency into account?
a)
A) Bag of Words (BoW)
b)
B) Binary Bag of Words (BBoW)
c)
C) TF-IDF
d)
D) N-grams
3.
What is the main advantage of using TF-IDF over simple BoW?
a)
A) Simplicity
b)
B) Higher dimensionality
c)
C) Word importance and frequency consideration
d)
D) Larger corpus size
4.
In the context of text vectorization, when might using n-grams be more advantageous than simple word tokenization?
a)
A) When dealing with small text corpora
b)
B) When you need to preserve the order of words
c)
C) N-grams are never more advantageous
d)
D) When working with images, not text
5.

Consider a document-term matrix for text vectorization, where rows represent documents and columns represent terms (words). How could we extract feature vectors for each word ?

a)

rows can be used as feature vectors

b)

columns can be used as feature vectors

c)

We need first to convert the matrix to a BoW matrix

d)

use countvectorizer(Binary=True)

6.
Suppose you have a text corpus with hundreds of thousands of documents. You're using TF-IDF for vectorization. What is the potential issue you might encounter with such a large corpus when computing the TF-IDF matrix?
a)
A) The matrix will be too small to handle efficiently
b)
B) The dimensionality of the matrix becomes very high
c)
C) TF-IDF is not suitable for large corpora
d)
D) The computation time is reduced
7.
What is the primary objective of Named Entity Recognition (NER) in natural language processing?
a)
A) Identifying and classifying specific entities in text, such as names of people, places, and organizations.
b)
B) Analyzing sentence structure and grammar to determine overall text sentiment.
c)

C)Identifying Names of persons in the documents

d)
D) Counting the frequency of stop words in a text corpus.
8.

In the context of natural language processing, what does "predictive power" of a word refer to?

a)
A) The ability of a model to generate accurate predictions based on historical data.
b)
B) The capability of a word to predict future events in a text.
c)
C) The significance of a word's presence in a document based on its frequency and distribution.
d)

D) The degree of confidence in the correctness of the word syntax

9.
What does a "vector space model" (VSM) represent in natural language processing?
a)
A) A model that predicts the future occurrences of words in a text corpus.
b)

B) A model for encoding and representing documents and or words as fixed-length numeric vectors.

c)

C) A model used for converting text to vectors of different lengths .

d)

D) A model that encodes documents only as fixed length numeric vectors