Quiz Part I: Foundations of NLP
Practical Applications
- Using which function from
scikit-learn
can you transform text data into a Bag of Words representation?a) TfidfVectorizer
b) CountVectorizer
c) Word2Vec
d) BertTokenizer
- Which method from Gensim can you use to load pre-trained GloVe embeddings?
a) gensim.load_glove()
b) api.load()
c) glove.load()
d) gensim.download_glove()
- What is the primary purpose of stop word removal in text preprocessing?
a) To increase the length of text data.
b) To remove irrelevant or less informative words.
c) To convert text to uppercase.
d) To add punctuation to the text.
Practical Applications
- Using which function from
scikit-learn
can you transform text data into a Bag of Words representation?a) TfidfVectorizer
b) CountVectorizer
c) Word2Vec
d) BertTokenizer
- Which method from Gensim can you use to load pre-trained GloVe embeddings?
a) gensim.load_glove()
b) api.load()
c) glove.load()
d) gensim.download_glove()
- What is the primary purpose of stop word removal in text preprocessing?
a) To increase the length of text data.
b) To remove irrelevant or less informative words.
c) To convert text to uppercase.
d) To add punctuation to the text.
Practical Applications
- Using which function from
scikit-learn
can you transform text data into a Bag of Words representation?a) TfidfVectorizer
b) CountVectorizer
c) Word2Vec
d) BertTokenizer
- Which method from Gensim can you use to load pre-trained GloVe embeddings?
a) gensim.load_glove()
b) api.load()
c) glove.load()
d) gensim.download_glove()
- What is the primary purpose of stop word removal in text preprocessing?
a) To increase the length of text data.
b) To remove irrelevant or less informative words.
c) To convert text to uppercase.
d) To add punctuation to the text.
Practical Applications
- Using which function from
scikit-learn
can you transform text data into a Bag of Words representation?a) TfidfVectorizer
b) CountVectorizer
c) Word2Vec
d) BertTokenizer
- Which method from Gensim can you use to load pre-trained GloVe embeddings?
a) gensim.load_glove()
b) api.load()
c) glove.load()
d) gensim.download_glove()
- What is the primary purpose of stop word removal in text preprocessing?
a) To increase the length of text data.
b) To remove irrelevant or less informative words.
c) To convert text to uppercase.
d) To add punctuation to the text.