NLP301c Full

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/616

encourage image

There are no tags or description

Looks like no tags are added yet.

617 Terms

1
New cards

Suppose we want to calculate a probability for the sequence of observations {'Dry','Rain'}. If the following are the possible hidden state sequences, then P('Dry' 'Rain') = ---------.

{'Low', 'Low'}, {'Low', 'High'}, {'High', 'Low'}, and {'High', 'High'}

a) P('Dry' 'Rain', 'Low' 'Low') * P('Dry' 'Rain', 'Low' 'High') * P('Dry' 'Rain', 'High' 'Low') * P('Dry' 'Rain', 'HIgh' 'High')

b) P('Dry' 'Rain', 'Low' 'Low') + P('Dry' 'Rain', 'Low' 'High') + P('Dry' 'Rain', 'High' 'Low') + P('Dry' 'Rain', 'HIgh' 'High')

c) P('Dry' 'Rain') * P( 'Low' 'High') * P( 'High' 'Low') * P('HIgh' 'High')

d) P('Dry' 'Rain') + P( 'Low' 'High') + P( 'High' 'Low') + P('HIgh' 'High')

B

2
New cards

Which of the following techniques can be used for the purpose of keyword normalization, the process of converting a keyword into its base form?

Lemmatization

Levenshtein

Stemming

Soundex

A) 1 and 2

B) 2 and 4

C) 1 and 3

D) 1, 2 and 3

E) 2, 3 and 4

F) 1, 2, 3 and 4

C

3
New cards

N-grams are defined as the combination of N keywords together. How many bi-grams can be generated from a given sentence:

"Analytics Vidhya is a great source to learn data science"

A) 7

B) 8

C) 9

D) 10

E) 11

C

4
New cards

How many trigrams phrases can be generated from the following sentence, after performing following text cleaning steps:

Stopword Removal

Replacing punctuations by a single space

"#Analytics-vidhya is a great source to learn @data_science."

A) 3

B) 4

C) 5

D) 6

E) 7

C

5
New cards

Which of the following regular expression can be used to identify date(s) present in the text object:

"The next meetup on data science will be held on 2017-09-21, previously it happened on 31/03, 2016"

A) \d{4}-\d{2}-\d{2}

B) (19|20)\d{2}-(0[1-9]|1[0-2])-[0-2][1-9]

C) (19|20)\d{2}-(0[1-9]|1[0-2])-([0-2][1-9]|3[0-1])

D) None of the above

D

6
New cards

Which of the following models can perform tweet classification with regards to context mentioned above?

A) Naive Bayes

B) SVM

C) None of the above

C

7
New cards

You have created a document term matrix of the data, treating every tweet as one document. Which of the following is correct, in regards to document term matrix?

Removal of stopwords from the data will affect the dimensionality of data

Normalization of words in the data will reduce the dimensionality of data

Converting all the words in lowercase will not affect the dimensionality of the data

A) Only 1

B) Only 2

C) Only 3

D) 1 and 2

E) 2 and 3

F) 1, 2 and 3

D

8
New cards

Which of the following features can be used for accuracy improvement of a classification model?

A) Frequency count of terms

B) Vector Notation of sentence

C) Part of Speech Tag

D) Dependency Grammar

E) All of these

E

9
New cards

What percentage of the total statements are correct with regards to Topic Modeling?

It is a supervised learning technique

LDA (Linear Discriminant Analysis) can be used to perform topic modeling

Selection of number of topics in a model does not depend on the size of data

Number of topic terms are directly proportional to size of the data

A) 0

B) 25

C) 50

D) 75

E) 100

A

10
New cards

In Latent Dirichlet Allocation model for text classification purposes, what does alpha and beta hyperparameter represent-

A) Alpha: number of topics within documents, beta: number of terms within topics

B) Alpha: density of terms generated within topics, beta: density of topics generated within terms

C) Alpha: number of topics within documents, beta: number of terms within topics

D) Alpha: density of topics generated within documents, beta: density of terms generated within topics

D

11
New cards

Solve the equation according to the sentence "I am planning to visit New Delhi to attend Analytics Vidhya Delhi Hackathon".

A = (# of words with Noun as the part of speech tag)B = (# of words with Verb as the part of speech tag)C = (# of words with frequency count greater than one)

What are the correct values of A, B, and C?

A) 5, 5, 2

B) 5, 5, 0

C) 7, 5, 1

D) 7, 4, 2

E) 6, 4, 3

D

12
New cards

In a corpus of N documents, one document is randomly picked. The document contains a total of T terms and the term "data" appears K times.

What is the correct value for the product of TF (term frequency) and IDF (inverse-document-frequency), if the term "data" appears in approximately one-third of the total documents?

A) KT * Log(3)

B) K * Log(3) / T

C) T * Log(3) / K

D) Log(3) / KT

B

13
New cards

Which of the following technique is not a part of flexible text matching?

A) Soundex

B) Metaphone

C) Edit Distance

D) Keyword Hashing

D

14
New cards

True or False: Word2Vec model is a machine learning model used to create vector notations of text objects. Word2vec contains multiple deep neural networks

A) TRUE

B) FALSE

B

15
New cards

Which of the following statement is(are) true for Word2Vec model?

A) The architecture of word2vec consists of only two layers - continuous bag of words and skip-gram model

B) Continuous bag of word (CBOW) is a Recurrent Neural Network model

C) Both CBOW and Skip-gram are shallow neural network models

D) All of the above

C

16
New cards

What is the right order for a text classification model components

Text cleaning

Text annotation

Gradient descent

Model tuning

Text to predictors

A) 12345

B) 13425

C) 12534

D) 13452

C

17
New cards

Polysemy is defined as the coexistence of multiple meanings for a word or phrase in a text object. Which of the following models is likely the best choice to correct this problem?

A) Random Forest Classifier

B) Convolutional Neural Networks

C) Gradient Boosting

D) All of these

B

18
New cards

Which of the following models can be used for the purpose of document similarity?

A) Training a word 2 vector model on the corpus that learns context present in the document

B) Training a bag of words model that learns occurrence of words in the document

C) Creating a document-term matrix and using cosine similarity for each document

D) All of the above

D

19
New cards

While creating a machine learning model on text data, you created a document term matrix of the input data of 100K documents. Which of the following remedies can be used to reduce the dimensions of data -

Latent Dirichlet Allocation

Latent Semantic Indexing

Keyword Normalization

A) only 1

B) 2, 3

C) 1, 3

D) 1, 2, 3

D

20
New cards

Google Search's feature - "Did you mean", is a mixture of different techniques. Which of the following techniques are likely to be ingredients?

Collaborative Filtering model to detect similar user behaviors (queries)

Model that checks for Levenshtein distance among the dictionary terms

Translation of sentences into multiple languages

A) 1

B) 2

C) 1, 2

D) 1, 2, 3

D

21
New cards

While working with text data obtained from news sentences, which are structured in nature, which of the grammar-based text parsing techniques can be used for noun phrase detection, verb phrase detection, subject detection and object detection.

A) Part of speech tagging

B) Dependency Parsing and Constituency Parsing

C) Skip Gram and N-Gram extraction

D) Continuous Bag of Words

B

22
New cards

Social Media platforms are the most intuitive form of text data. You are given a corpus of complete social media data of tweets. How can you create a model that suggests the hashtags?

A) Perform Topic Models to obtain most significant words of the corpus

B) Train a Bag of Ngrams model to capture top n-grams - words and their combinations

C) Train a word2vector model to learn repeating contexts in the sentences

D) All of these

D

23
New cards

While working with context extraction from a text data, you encountered two different sentences: The tank is full of soldiers. The tank is full of nitrogen. Which of the following measures can be used to remove the problem of word sense disambiguation in the sentences?

A) Compare the dictionary definition of an ambiguous word with the terms contained in its neighborhood

B) Co-reference resolution in which one resolute the meaning of ambiguous word with the proper noun present in the previous sentence

C) Use dependency parsing of sentence to understand the meanings

A

24
New cards

Collaborative Filtering and Content Based Models are the two popular recommendation engines, what role does NLP play in building such algorithms.

A) Feature Extraction from text

B) Measuring Feature Similarity

C) Engineering Features for vector space learning model

D) All of these

D

25
New cards

Retrieval based models and Generative models are the two popular techniques used for building chatbots. Which of the following is an example of retrieval model and generative model respectively.

A) Dictionary based learning and Word 2 vector model

B) Rule-based learning and Sequence to Sequence model

C) Word 2 vector and Sentence to Vector model

D) Recurrent neural network and convolutional neural network

B

26
New cards

What is the major difference between CRF (Conditional Random Field) and HMM (Hidden Markov Model)?

A) CRF is Generative whereas HMM is Discriminative model

B) CRF is Discriminative whereas HMM is Generative model

C) Both CRF and HMM are Generative model

D) Both CRF and HMM are Discriminative model

B

27
New cards

What is the field of Natural Language Processing (NLP)?

a) Computer Science

b) Artificial Intelligence

c) Linguistics

d) All of the mentioned

D

28
New cards

NLP is concerned with the interactions between computers and human (natural) languages.

a) True

b) False

A

29
New cards

What is the main challenge/s of NLP?

a) Handling Ambiguity of Sentences

b) Handling Tokenization

c) Handling POS-Tagging

d) All of the mentioned

A

30
New cards

Modern NLP algorithms are based on machine learning, especially statistical machine learning.

a) True

b) False

A

31
New cards

Choose form the following areas where NLP can be useful.

a) Automatic Text Summarization

b) Automatic Question-Answering Systems

c) Information Retrieval

d) All of the mentioned

D

32
New cards

Which of the following includes major tasks of NLP?

a) Automatic Summarization

b) Discourse Analysis

c) Machine Translation

d) All of the mentioned

D

33
New cards

What is Coreference Resolution?

a) Anaphora Resolution

b) Given a sentence or larger chunk of text, determine which words ("mentions") refer to the same objects ("entities")

c) All of the mentioned

d) None of the mentioned

B

34
New cards

What is Machine Translation?

a) Converts one human language to another

b) Converts human language to machine language

c) Converts any human language to English

d) Converts Machine language to human language

A

35
New cards

The more general task of coreference resolution also includes identifying so-called "bridging relationships" involving referring expressions.

a) True

b) False

A

36
New cards

What is Morphological Segmentation?

a) Does Discourse Analysis

b) Separate words into individual morphemes and identify the class of the morphemes

c) Is an extension of propositional logic

d) None of the mentioned

B

37
New cards

Given a stream of text, Named Entity Recognition determines which pronoun maps to which noun.

a) False

b) True

A

38
New cards

Natural Language generation is the main task of Natural language processing.

a) True

b) False

A

39
New cards

OCR (Optical Character Recognition) uses NLP.

a) True

b) False

A

40
New cards

Parts-of-Speech tagging determines ___________

a) part-of-speech for each word dynamically as per meaning of the sentence

b) part-of-speech for each word dynamically as per sentence structure

c) all part-of-speech for a specific word given as input

d) all of the mentioned

D

41
New cards

Parsing determines Parse Trees (Grammatical Analysis) for a given sentence.

a) True

b) False

A

42
New cards

IR (information Retrieval) and IE (Information Extraction) are the two same thing.

a) True

b) False

B

43
New cards

Many words have more than one meaning; we have to select the meaning which makes the most sense in context. This can be resolved by ____________

a) Fuzzy Logic

b) Word Sense Disambiguation

c) Shallow Semantic Analysis

d) All of the mentioned

B

44
New cards

Given a sound clip of a person or people speaking, determine the textual representation of the speech.

a) Text-to-speech

b) Speech-to-text

c) All of the mentioned

d) None of the mentioned

B

45
New cards

Speech Segmentation is a subtask of Speech Recognition.

a) True

b) False

A

46
New cards

In linguistic morphology _____________ is the process for reducing inflected words to their root form.

a) Rooting

b) Stemming

c) Text-Proofing

d) Both Rooting & Stemming

B

47
New cards

Which of the following techniques can be used for keyword normalization in NLP, the process of converting a keyword into its base form?

a. Lemmatization

b. Soundex

c. Cosine Similarity

d. N-grams

A

48
New cards

Which of the following techniques can be used to compute the distance between two word vectors in NLP?

a. Lemmatization

b. Euclidean distance

c. Cosine Similarity

d. N-grams

e. b) and c)

E

49
New cards

What are the possible features of a text corpus in NLP?

a. Count of the word in a document

b. Vector notation of the word

c. Part of Speech Tag

d. Basic Dependency Grammar

e. All of the above

e

50
New cards

You created a document term matrix on the input data of 20K documents for a Machine learning model. Which of the following can be used to reduce the dimensions of data?

Keyword Normalization

Latent Semantic Indexing

Latent Dirichlet Allocation

a. only 1

b. 2, 3

c. 1, 3

d. 1, 2, 3

D

51
New cards

Which of the text parsing techniques can be used for noun phrase detection, verb phrase detection, subject detection, and object detection in NLP.

a. Part of speech tagging

b. Skip Gram and N-Gram extraction

c. Continuous Bag of Words

d. Dependency Parsing and Constituency Parsing

D

52
New cards

Dissimilarity between words expressed using cosine similarity will have values significantly higher than 0.5

A. TRUE

B. FALSE

b

53
New cards

Which of the below are NLP use cases?

a. Detecting objects from an image

b. Facial Recognition

c. Speech Biometric

d. Text Summarization

D

54
New cards

In NLP, The algorithm decreases the weight for commonly used words and increases the weight for words that are not used very much in a collection of documents

a. Term Frequency (TF)

b. Inverse Document Frequency (IDF)

c. Word2Vec

d. Latent Dirichlet Allocation (LDA)

B

55
New cards

In NLP, The process of removing words like "and", "is", "a", "an", "the" from a sentence is called as

a. Stemming

b. Lemmatization

c. Stop word

d. All of the above

C

56
New cards

In NLP, The process of converting a sentence or paragraph into tokens is referred to as Stemming

a. True

b. False

B

57
New cards

In NLP, Tokens are converted into numbers before giving to any Neural Network

a. True

b. False

A

58
New cards

Identify the odd one out

a. nltk

b. scikit learn

c. SpaCy

d. BERT

D

59
New cards

TF-IDF helps you to establish?

a. most frequently occurring word in the document

b. most important word in the document

B

60
New cards

In NLP, The process of identifying people, an organization from a given sentence, paragraph is called

a. Stemming

b. Lemmatization

c. Stop word removal

d. Named entity recognition

D

61
New cards

Which one of the following is not a pre-processing technique in NLP

a. Stemming and Lemmatization

b. converting to lowercase

c. removing punctuations

d. removal of stop words

e. Sentiment analysis

E

62
New cards

In text mining, converting text into tokens and then converting them into an integer or floating-point vectors can be done using

a. CountVectorizer

b. TF-IDF

c. Bag of Words

d. NERs

A

63
New cards

In NLP, Words represented as vectors are called as Neural Word Embeddings

a. True

b. False

A

64
New cards

In NLP, Context modeling is supported with which one of the following word embeddings

a. Word2Vec

b) GloVe

c) BERT

d) All of the above

C

65
New cards

In NLP, Bidirectional context is supported by which of the following embedding

a. Word2Vec

b. BERT

c. GloVe

d. All the above

B

66
New cards

Which one of the following Word embeddings can be custom trained for a specific subject in NLP

a. Word2Vec

b. BERT

c. GloVe

d. All the above

B

67
New cards

Word embeddings capture multiple dimensions of data and are represented as vectors

a. True

b. False

A

68
New cards

In NLP, Word embedding vectors help establish distance between two tokens

a. True

b. False

A

69
New cards

Language Biases are introduced due to historical data used during training of word embeddings, which one amongst the below is not an example of bias

a. New Delhi is to India, Beijing is to China

b. Man is to Computer, Woman is to Homemaker

A

70
New cards

Which of the following will be a better choice to address NLP use cases such as semantic similarity, reading comprehension, and common sense reasoning

a. ELMo

b. Open AI's GPT

c. ULMFit

B

71
New cards

Transformer architecture was first introduced with?

a. GloVe

b. BERT

c. Open AI's GPT

d. ULMFit

C

72
New cards

Which of the following architecture can be trained faster and needs less amount of training data

a. LSTM based Language Modelling

b. Transformer architecture

B

73
New cards

Same word can have multiple word embeddings possible with ____________?

a. GloVe

b. Word2Vec

c. ELMo

d. nltk

C

74
New cards

For a given token, its input representation is the sum of embedding from the token, segment and position embedding

a. ELMo

b. GPT

c. BERT

d. ULMFit

C

75
New cards

Trains two independent LSTM language model left to right and right to left and shallowly concatenates them

a. GPT

b. BERT

c. ULMFit

d. ELMo

D

76
New cards

Uses unidirectional language model for producing word embedding

a. BERT

b. GPT

c. ELMo

d. Word2Vec

B

77
New cards

In this architecture, the relationship between all words in a sentence is modelled irrespective of their position. Which architecture is this?

a. OpenAI GPT

b. ELMo

c. BERT

d. ULMFit

C

78
New cards

Transformer model pays attention to the most important word in Sentence

a. True

b. False

A

79
New cards

Which NLP model gives the best accuracy amongst the following?

a. BERT

b. XLNET

c. GPT-2

d. ELMo

B

80
New cards

Permutation Language models is a feature of

a. BERT

b. EMMo

c. GPT

d. XLNET

D

81
New cards

Transformer XL uses relative positional embedding

a. True

b. False

A

82
New cards

Which algorithm is used for solving temporal probabilistic reasoning?

a) Hill-climbing search

b) Hidden markov model

c) Depth-first search

d) Breadth-first search

B

83
New cards

How does the state of the process is described in HMM?

a) Literal

b) Single random variable

c) Single discrete random variable

d) None of the mentioned

C

84
New cards

What are the possible values of the variable?

a) Variables

b) Literals

c) Discrete variable

d) Possible states of the world

D

85
New cards

Where does the additional variables are added in HMM?

a) Temporal model

b) Reality model

c) Probability model

d) All of the mentioned

A

86
New cards

Which allows for a simple and matrix implementation of all the basic algorithm?

a) HMM

b) Restricted structure of HMM

c) Temporary model

d) Reality model

B

87
New cards

Where does the Hidden Markov Model is used?

a) Speech recognition

b) Understanding of real world

c) Both Speech recognition & Understanding of real world

d) None of the mentioned

A

88
New cards

Which variable can give the concrete form to the representation of the transition model?

a) Single variable

b) Discrete state variable

c) Random variable

d) Both Single & Discrete state variable

D

89
New cards

Which algorithm works by first running the standard forward pass to compute?

a) Smoothing

b) Modified smoothing

c) HMM

d) Depth-first search algorithm

B

90
New cards

Which reveals an improvement in online smoothing?

a) Matrix formulation

b) Revelation

c) HMM

d) None of the mentioned

A

91
New cards

Which suggests the existence of an efficient recursive algorithm for online smoothing?

a) Matrix

b) Constant space

c) Constant time

d) None of the mentioned

B

92
New cards

Given a sentence S="w1 w2 w3 ... wn", to compute the likelihood of S using a bigram model. How would you compute the likelihood of S?

a. Calculate the conditional probability of each word in the sentence given the preceding word and add the resulting numbers

b. Calculate the conditional probability of each word in the sentence given the preceding word and multiply the resulting numbers

c. Calculate the conditional probability of each word given all preceding words in a sentence and add the resulting numbers

d. Calculate the conditional probability of each word given all preceding words in a sentence and multiply the resulting numbers

B

93
New cards

In the sentence, "They bought a blue house", the underlined part is an example of _____.

a. Noun phrase

b. Verb phrase

c. Prepositional phrase

d. Adverbial phrase

A

94
New cards

Consider the following Context-Free Grammar G;

S → A B (1)

S → A S C (2)

B → A C D (3)

A → a (4)

C → c (5)

D → d (6)

Which of the following strings belong to the language defined by the above grammar?

a. cacadacad

b. aacd

c. aaacdc

d. aaaaacdcc

e. b and c

f. a and d

E

95
New cards

Let us assume that CorpA is a corpus of English with approximately 560 million tokens. Following are the counts of unigrams and bigrams from the corpus;

snow | purple | snow

30250 | 12321 |0

Find the probability of P(snow|purple) using maximum likelihood estimation without smoothing.

a. 12321

b. 30250

c. 0.4073

d. 0

D

96
New cards

4-grams are better than trigrams for part-of-speech tagging.

a. TRUE

b. FALSE

B

97
New cards

What will be the perplexity value if you calculate the perplexity of an unsmoothed language model on a test corpus with unseen words?

(a) 0

(b) Infinity

(c) any non-zero value

(d) None of the above

B

98
New cards

Which of the following NLP tasks use sequential labeling technique?

(a) POS tagging

(b) Named Entity Recognition

(c) Speech recognition

(d) All of the above

D

99
New cards

In POS tagging problem, what is the output of Viterbi algorithm?

(a) Probability of word sequence given a particular tag sequence

(b) Optimal transition and observation probabilities for HMM

(c) Probability of the best tag sequence given a word sequence

(d) None of the above

C

100
New cards

What type of ambiguity exists in the word sequence "Time flies"?

(a) Syntactic

(b) Semantic

(c) Phonological

(d) Anaphoric

B