Conditional Random Fields
LING 572 Advanced Statistical Methods in NLP February 11, 2020
1
Conditional Random Fields LING 572 Advanced Statistical Methods in - - PowerPoint PPT Presentation
Conditional Random Fields LING 572 Advanced Statistical Methods in NLP February 11, 2020 1 Announcements HW4 grades out: 93.1 mean HW6 posted later today Implement beam search Note: pay attention to data format + feature vectors
LING 572 Advanced Statistical Methods in NLP February 11, 2020
1
2
3
4
5
conditional independence structure between random variables:
6
7
P(X|parents(X))
8
An example
(from http://en.wikipedia.org/wiki/Bayesian_network)
9
P(grassWet | sprinkler, rain) P(rain) P(sprinkler | rain)
10
E C A B D
P(A|B, E) P(B) P(E) P(D|E) P(C|A)
11
12
E C A B D
13
Y
f1 f2 fn
HMM
14
X2 X3 Xn+1 X1
P(O1:n, X1:n+1) = π(X1)
n
∏
i=1
P(Xi+1|Xi)P(Oi|Xi+1)
topologically precedes the input (i.e., what is given as observation).
15
16
property:
variables given its neighbors.
17
connected by an edge.
18
A B C E D
clique: maximal clique: maximum clique:
19
A B C E D
20
A CRF is a random field globally conditioned on the observation X.
21
22
Relations between NB, MaxEnt, HMM, and CRF
23
24
25
λj
26
27
allowed by linear-chain CRF
28
29
Linear-chain CRF: Skip-chain CRF:
30
31
32
Source: NLP Progress
33