30 Questions to test a Data Scientist on Natural Language Processing

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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) A right text classification model contains - cleaning of text to remove noise, annotation to create more features, converting text-based features into predictors, learning a model using gradient descent and finally tuning a model.

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) Option B is correct

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) Dependency and constituent parsing extract these relations from the text

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) choice 2 best explains examples of retrieval based models and generative models

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) All of the techniques can be used to reduce the dimensions of the data.

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) NLP can be used anywhere where text data is involved - feature extraction, measuring feature similarity, create vector features of the text.

What are the possible features of a text corpus Count of word in a document Boolean feature - presence of word in a document Vector notation of word Part of Speech Tag Basic Dependency Grammar Entire document as a feature A) 1 B) 12 C) 123 D) 1234 E) 12345 F) 123456

(E) Except for entire document as the feature, rest all can be used as features of text classification learning model.

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) LDA is unsupervised learning model, LDA is latent Dirichlet allocation, not Linear discriminant analysis. Selection of the number of topics is directly proportional to the size of the data, while number of topic terms is not directly proportional to the size of the data. Hence none of the statements are correct.

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) Option 1 is called Lesk algorithm, used for word sense disambiguation, rest others cannot be used.

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) CNNs are popular choice for text classification problems because they take into consideration left and right contexts of the words as features which can solve the problem of polysemy

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) Word2vec also contains preprocessing model which is not a deep neural network

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) formula for TF is K/T formula for IDF is log(total docs / no of docs containing "data") = log(1 / (⅓)) = log (3) Hence correct choice is Klog(3)/T

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) After performing stopword removal and punctuation replacement the text becomes: "Analytics vidhya great source learn data science" Trigrams - Analytics vidhya great, vidhya great source, great source learn, source learn data, learn data science

N-grams are defined as the combination of N keywords together. How many bi-grams can be generated from given sentence: "Analytics Vidhya is a great source to learn data science" A) 7 B) 8 C) 9 D) 10 E) 11

(C) Bigrams: Analytics Vidhya, Vidhya is, is a, a great, great source, source to, To learn, learn data, data science

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

(C) Collaborative filtering can be used to check what are the patterns used by people, Levenshtein is used to measure the distance among dictionary terms.

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) Lemmatization and stemming are the techniques of keyword normalization, while Levenshtein and Soundex are techniques of string matching.

You have collected a data of about 10,000 rows of tweet text and no other information. You want to create a tweet classification model that categorizes each of the tweets in three buckets - positive, negative and neutral. 5) 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) Since, you are given only the data of tweets and no other information, which means there is no target variable present. One cannot train a supervised learning model, both svm and naive bayes are supervised learning techniques.

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 is a shallow neural network model C) Skip-gram is a deep neural network model D) Both CBOW and Skip-gram are deep neural network models E) All of the above

(C) Word2vec contains the Continuous bag of words and skip-gram models, which are deep neural nets.

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) All of the techniques can be used to extract most significant terms of a corpus.

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) Choices A and B are correct because stopword removal will decrease the number of features in the matrix, normalization of words will also reduce redundant features, and, converting all words to lowercase will also decrease the dimensionality.

Which of the following technique is not a part of flexible text matching? A) Soundex B) Metaphone C) Edit Distance D) Keyword Hashing

(D) Except Keyword Hashing all other are the techniques used in flexible string matching

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) None if these expressions would be able to identify the dates in this text object.

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) Nouns: I, New, Delhi, Analytics, Vidhya, Delhi, Hackathon (7) Verbs: am, planning, visit, attend (4) Words with frequency counts > 1: to, Delhi (2) Hence option D is correct.

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 False B) Alpha: density of terms generated within topics, beta: density of topics generated within terms False C) Alpha: number of topics within documents, beta: number of terms within topics False D) Alpha: density of topics generated within documents, beta: density of terms generated within topics True

(D) Option D is correct

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) word2vec model can be used for measuring document similarity based on context. Bag Of Words and document term matrix can be used for measuring similarity based on terms.

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) All of the techniques can be used for the purpose of engineering features in a model.


Kaugnay na mga set ng pag-aaral

Maternity Exam 3 Cumm. Questions

View Set

Chapter 1: The Profession of Nursing

View Set

ENGL 1301 WORDINESS/ CLUTTER NOTES AND QUIZ

View Set

NCELX-PN MUSCULOSKELETAL PEDIATRICS

View Set

ENSCI99 - Chapter 16: Environmental Policy & Sustainability

View Set

CHAPTER 14 MKTG 351 (marketing channels and supply chain mgmt)

View Set

Macro Economics Exam Review (CH.1)

View Set

Unit 3 : Making More Nutritious Choices

View Set

Business Law - Final Word Problems

View Set

AGE OF ENLIGHTENMENT AND THE AMERICAN REVOLUTION

View Set