Natural Language Processing · 免费预览

条件随机场

生成式标注器为何在未知词和丰富特征下吃力,作为对数线性序列模型的 CRF,局部与全局特征,权重学习,以及实体级评估。

1. Conditional Random Fields

Conditional Random Fields

2. Features, decoding, training, and evaluation

Features, decoding, training, and evaluation

3. A CRF scorer and entity F1 in NumPy

A CRF scorer and entity F1 in NumPy

4. The generative straitjacket

What is the core limitation of the HMM tagger that the CRF removes?

5. Summing local into global

How do the global features FkF_k of a CRF relate to the local features fkf_k?

6. Computing a word shape

Map the word 'DC-10' to its word-shape fingerprint, upper-case letters to X, lower-case to x, digits to d, punctuation kept as itself. Answer with the exact shape string.

7. Entity-level precision and recall

On a test set an NER system finds 66 spans correctly, produces 77 spans in total, and the gold annotation contains 88 spans. Compute precision, rounding to three decimals.

8. Viterbi with a different arithmetic

What changes when Viterbi runs on a linear-chain CRF instead of an HMM?

进入交互式练习

免费注册 · 即时批改 · 自动安排间隔复习。

免费开始这门课