Language Models
Fall 2020 2020-09-11 CMPT 413/825: Natural Language Processing
SFU NatLangLab
Adapted from slides from Anoop Sarkar, Danqi Chen and Karthik Narasimhan
1
Language Models Fall 2020 2020-09-11 Adapted from slides from Anoop - - PowerPoint PPT Presentation
SFU NatLangLab CMPT 413/825: Natural Language Processing Language Models Fall 2020 2020-09-11 Adapted from slides from Anoop Sarkar, Danqi Chen and Karthik Narasimhan 1 Announcements Sign up on Piazza for announcements, discussion, and
1
piazza.com/sfu.ca/fall2020/cmpt413825
2
Today, in Vancouver, it is 76 F and red Today, in Vancouver, it is 76 F and sunny
vs
3
4
P(a smooth finish) > P(a flat finish)
P(high school principal) > P(high school principle)
5
6
(Miki et al., 2006)
7
8
si∈V+
i
9
values
10
11
Sentence: “the cat sat on the mat”
12
results in sequences! (# of atoms in the earth )
P(sat|the cat) = count(the cat sat) count(the cat)
P(on|the cat sat) = count(the cat sat on) count(the cat sat)
13
14
15
n
i=1
n
i=1
16
17
18
19
20
21
22
23
24
25
Frequency Rank
26
27
28
times
unobserved ones
29
(Credits: Dan Klein)
30
31
32
33
i
34
35
36
37