N-gram models

Report a typo

Choose an appropriate formula for the N-gram LM probability calculation from the options below.

1)

P(yt∣y1,…,yt−1)=N(y1,…,yt−1,yt)N(y1,…,yt−1),P(y_t|y_1, \dots, y_{t-1}) = \frac{N(y_1, \dots, y_{t-1}, y_t)}{N(y_1, \dots, y_{t-1})},

2)

P(wi∣hi)=1/Z(hi)∗exp(∑jλjfj(hiwi))P(w_i|h_i) = 1 / Z(h_i) * exp(\sum_j \lambda_j f_j (h_i w_i))

3)

P(w1,...,wm)=∏i=1mP(wi∣w1,...,wi−1)=∏i=1mP(wi∣wi−(n−1),...,wi−1)P(w_1, ..., w_m) = \prod_{i=1}^m P(w_i | w_1, ..., w_{i-1}) = \prod_{i=1}^m P(w_i | w_{i-(n-1)}, ..., w_{i-1})

Select one option from the list

Create a free account to access the full topic