Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

FIU Machine Learning Natural Language Processing Computer Science Problems Part 2

FIU Machine Learning Natural Language Processing Computer Science Problems Part 2

Description

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(I)=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 3: POS Tagging .  Use the Penn Treebank tags to tag each word in the following sentences.  Remember to tag punctuation.

  1. There is a stubbornness about me that never can bear to be frightened at the will of others. My courage always rises at every attempt to intimidate me. 
  2. Conventionality is not morality. 
  3. We must have ideals and try to live up to them, even if we never quite succeed. Life would be a sorry business without them. With them it’s grand and great. 
  4. If neurotic is wanting two mutually exclusive things at one and the same time, then I’m neurotic as hell. I’ll be flying back and forth between one mutually exclusive thing and another for the rest of my days. 

Problem 4: Brill Tagging 

(a) Consider the following sentence and two different taggings:

Most likely tags: John/NNP made/VBD up/IN the/DT story/NN ./.

Correct tags: John/NNP made/VBD up/RP the/DT story/NN ./.

Instantiate each of Brill’s templates for the “before” or “preceding” cases (Figure 5.20 in the book) given this data to generate 6 transformations (that is, do not instantiate templates using “following” or “after”). 

(b) Considering examples 5.4-5.6 in the book, which of these transformations do you think will be most effective on a large corpus, and why? 

  • /NNP Shaefer/NNP never/RB got/VBD around/RP to/TO joining/VBG
  • All/DT we/PRP gotta/VBN do/VB is/VBZ go/VB around/IN the/DT corner/NN
  • Chateau/NNP Petrus/NNP costs/VBZ around/RB 250/CD[
  • 1] Jane Austen, Pride and Prejudice
  • [2] Charlotte Brontë, Jane Eyre
  • [3] Lucy Maud Montgomery, Anne Of Avonlea
  • [4] Sylvia Plath, The Bell Jar

Our Service Charter

1. Professional & Expert Writers: Writing Expert only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Writing Expert are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Writing Expert is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Writing Expert, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

Our Service Charter

1. Professional & Expert Writers: Writing Expert only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Writing Expert are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Writing Expert is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Writing Expert, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.