Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 1: Bigrams (a) Compute the bigram count table, C(w2|w1) for the sentence I saw Susie sitting in a shoe shine shop. Where Susie sits
Problem 1: Bigrams (a) Compute the bigram count table, C(w2|w1) for the sentence "I saw Susie sitting in a shoe shine shop. Where Susie sits Susie shines, and where Susie shines Susie sits." Put w1 in the left hand column, and w2 in the top row. Include punctuation, clitics, and sentence start and end markers as individual tokens, and index words using their lemmatized forms. (b) Compute the bigram probability table, P(w2/w1) for above sentence, assuming the following overall unigram counts: C(1)=2, C(see)= 25, C(Susie)=10, C(sit)=20, C(in)=80, C(a)=90, C(shoe)=50, C(shine) = 20, C(shop) = 20, C(Where)=60, C(,)=80, C(and)=100. Assume there are 75 sentences in the corpus, and they all end with a period. (c) Compute the probability and perplexity of the first sentence in (a) using the bigram approximation. Problem 2: Smoothing (a) Smooth the count table you calculated in 1(a) using Laplace smoothing, and recalculate the probability table as well. Assume V=30. (b) Recalculate the probability and perplexity of the first sentence in 1(a) using the smoothed table. Problem 1: Bigrams (a) Compute the bigram count table, C(w2|w1) for the sentence "I saw Susie sitting in a shoe shine shop. Where Susie sits Susie shines, and where Susie shines Susie sits." Put w1 in the left hand column, and w2 in the top row. Include punctuation, clitics, and sentence start and end markers as individual tokens, and index words using their lemmatized forms. (b) Compute the bigram probability table, P(w2/w1) for above sentence, assuming the following overall unigram counts: C(1)=2, C(see)= 25, C(Susie)=10, C(sit)=20, C(in)=80, C(a)=90, C(shoe)=50, C(shine) = 20, C(shop) = 20, C(Where)=60, C(,)=80, C(and)=100. Assume there are 75 sentences in the corpus, and they all end with a period. (c) Compute the probability and perplexity of the first sentence in (a) using the bigram approximation. Problem 2: Smoothing (a) Smooth the count table you calculated in 1(a) using Laplace smoothing, and recalculate the probability table as well. Assume V=30. (b) Recalculate the probability and perplexity of the first sentence in 1(a) using the smoothed table
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started