{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

languagemodeling

000031 dan jurafsky what kinds of knowledge

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: I do not like green eggs and ham </s> Dan Jurafsky •  •  •  •  •  •  More examples: Berkeley Restaurant Project sentences can you tell me about any good cantonese restaurants close by mid priced thai food is what i’m looking for tell me about chez panisse can you give me a lis*ng of the kinds of food that are available i’m looking for a good place to eat breakfast when is caffe venezia open during the day Dan Jurafsky Raw bigram counts •  Out of 9222 sentences Dan Jurafsky Raw bigram probabili1es •  Normalize by unigrams: •  Result: Dan Jurafsky Bigram es1mates of sentence probabili1es P(<s> I want english food </s>) = P(I|<s>) × P(want|I) × P(english|want) × P(food|english) × P(</s>|food) = .000031 Dan Jurafsky What kinds of knowledge? •  •  •  •  •  •  •  P(english|want) = .0011 P(chinese|want) = .0065 P(to|want) = .66 P(eat | to) = .28 P(food | to) = 0 P(want | spend) = 0 P (i | <s>) = .25 Dan Jurafsky Prac1cal Issues •  We do everything in log space •  Avoid underflow •  (also adding is faster than mul*plying) p1 ! p2 ! p3 ! p4 = log p1 + log p2 + log p3 + log p4 Dan Jurafsky Language Modeling Toolkits •  SRILM •  h_p://www.speech.sri.com/projects/srilm/ Dan Jurafsky Google N ­Gram Release, August 2006 … Dan Jurafsky Google N ­Gram Release •  •  •  •  •  •  •  •  •  •  serve serve serve serve serve serve serve serve serve serve as as as as as as as as as as the the the the the the the the the the incoming 92! incubator 99! independent 794! index 223! indication 72! indicator 120! indicators 45! indispensable 111! indispensible 40! individual 234! http://googleresearch.blogspot.com/2006/08/all-our-n-gram-are-belong-to-you.html Dan Jurafsky Google Book N ­grams •  h_p://ngrams.googlelabs.com/ Language Modeling Es*ma*ng N ­gram Probabili*es Language Modeling Evalua*on and Perplexity Dan Jurafsky Evalua1on: How goo...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern