






























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Session 9-12 of the elaborate lecture of Natural language processing by Derrik Higgins
Typology: Lecture notes
1 / 70
This page cannot be seen from the preview
Don't miss anything!































































Derrick Higgins
» P(“
high winds tonite”) > P(“
large winds tonite”)
» The office is about fifteen minuets from my house
» P(about fifteen minutes from) > P(about fifteen minuets from)
» P(“I saw a van”) >> P(“eyes awe of an”)
Rewriting:
𝑃(𝑥
1
, 𝑥
2
, 𝑥
3
, … , 𝑥
𝑛
) = 𝑃(𝑥
1
)𝑃(𝑥
2
|𝑥
1
)𝑃(𝑥
3
|𝑥
1
, 𝑥
2
) … 𝑃(𝑥𝑛|𝑥
1
, … , 𝑥
456
)
How to estimate these probabilities
P (the | its water is so transparent that) =
Count (its water is so transparent that the)
Count (its water is so transparent that)
P (the | its water is so transparent that) ≈ P (the | that)
P (the | its water is so transparent that) ≈ P (the | transparent that)
Andrei Markov
fifth, an, of, futures, the, an, incorporated, a,
a, the, inflation, most, dollars, quarter, in, is,
mass
thrift, did, eighty, said, hard, 'm, july, bullish
that, or, limited, the
Some automatically generated sentences from a unigram model
1
2
n
i
i
texaco, rose, one, in, this, issue, is, pursuing, growth, in,
a, boiler, house, said, mr., gurria, mexico, 's, motion,
control, proposal, without, permission, from, five, hundred,
fifty, five, yen
outside, new, car, parking, lot, of, the, agreement, reached
this, would, be, a, record, november
P ( w
i
| w
1
w
2
… w
i − 1
) ≈ P ( w
i
| w
i − 1
)
ESTIMATING N-GRAM
PROBABILITIES
P ( w
| w
) =
count ( w
, w
)
count ( w
)
P ( w
| w
) =
c ( w
, w
)
c ( w
)
More examples:
Berkeley Restaurant Project
P( I want english food ) =
P(I|)
× P(want|I)
× P(english|want)
× P(food|english)
× P(|food)
=.