Tuesday, March 1, 2022

Natural Language Processing Solved MCQ - Bigram Model

Multiple choices questions in NLP, Natural Language Processing solved MCQ, Bigram model, How to calculate the bigram probability using a corpus statistics? maximum likelihood estimate to find the bigram probability

Natural Language Processing MCQ - Bigram probability calculation

< Previous                      

Next >

 

1. Find the probability P(Alice | is) as per the bi-gram model. Use the corpus given below;

                                   <s> My name is Alice </s>

                                   <s> Alice my name is </s>

                                   <s> A girl said that her name is Alice </s>

                                   <s> My daughter’s name is Alice </s>

a) 0

b) 0.75

c) 0.25

d) 0.5

 

Answer: (b) 0.75

The frequency of the bi-gram 'is Alice' and the frequency of the uni-gram 'is' can be used to calculate the required bi-gram probability. The occurrence of bi-grams can be counted from the given corpus and the probability can be calculated as follows using Maximum Likelihood Estimate (MLE).

P(Alice | is) = Count('is Alice')/Count('is') = 3/4 = 0.75
The bi-gram 'is Alice' occurs three times and uni-gram 'is' occurs 4 times in the given corpus.

 

< Previous                      

Next >


*****************
Related links:


Top interview questions in NLP

NLP quiz questions with answers explained

How to calculate the bi-gram probability?

Bi-gram language model uses bi-gram probabilities that were learnt from the corpus using MLE

How to make use of maximum likelihood estimate to measure bi-gram probability?

NLP Solved MCQ, Natural language processing solved mcq, language model solved mcq, perplexity solved mcq, nlp solved exercises

Featured Content

Multiple choice questions in Natural Language Processing Home

MCQ in Natural Language Processing, Quiz questions with answers in NLP, Top interview questions in NLP with answers Multiple Choice Que...

All time most popular contents

data recovery