Every sentence is a sequence of words, and understanding language often means sticking a label on each one: this is a Person, that is an Organization, and the rest are Other. The task is called sequence labeling, and it sits at the heart of named-entity recognition, part-of-speech tagging, and dozens of other language problems.
The naive approach labels each word independently — look at the word, maybe its neighbors, and pick the most likely tag. But language rarely works that way. "Washington" is a person, a city, or a state depending entirely on what surrounds it. A model that ignores those dependencies will make avoidable mistakes.
Conditional Random Fields (CRFs), introduced by Lafferty, McCallum and Pereira in 2001, solve this by scoring the entire label sequence jointly. Instead of asking "what is the best label for word ?", a CRF asks "what is the best sequence of labels for the whole sentence?" That global view lets it enforce consistency across positions — if the model commits to B-ORG here, it will naturally prefer I-ORG next rather than an incoherent jump.
CRFs are a solved model: training by maximum-likelihood gradient descent and decoding by the Viterbi algorithm (dynamic programming in time, where is the sequence length and is the number of labels) are both well understood and efficient.
Comments
Loading comments...