Information Extraction and Named Entity Recognition
Introducing the tasks:
Getting simple structured information out of text
Christopher Manning
Information Extraction
Christopher Manning
Information Extraction (IE)
Christopher Manning
Low-level information extraction
Christopher Manning
Low-level information extraction
Christopher Manning
Named Entity Recognition (NER)
Christopher Manning
Named Entity Recognition (NER)
Christopher Manning
Named Entity Recognition (NER)
Person
Date
Location
Organi-
zation
Christopher Manning
Named Entity Recognition (NER)
Christopher Manning
Information Extraction and Named Entity Recognition
Introducing the tasks:
Getting simple structured information out of text
Christopher Manning
Evaluation of Named Entity Recognition
The extension of Precision, Recall, and the F measure to sequences
Christopher Manning
The Named Entity Recognition Task
Task: Predict entities in a text
Foreign ORG
Ministry ORG
spokesman O
Shen PER
Guofang PER
told O
Reuters ORG
: :
}
Standard evaluation
is per entity, not per token
Christopher Manning
Precision/Recall/F1 for IE/NER
Christopher Manning
Evaluation of Named Entity Recognition
The extension of Precision, Recall, and the F measure to sequences
Christopher Manning
Sequence Models for Named Entity Recognition
Christopher Manning
The ML sequence model approach to NER
Training
Testing
Christopher Manning
Encoding classes for sequence labeling
IO encoding IOB encoding
Fred PER B-PER
showed O O
Sue PER B-PER
Mengqiu PER B-PER
Huang PER I-PER
‘s O O
new O O
painting O O
Christopher Manning
Features for sequence labeling
18
Christopher Manning
Features: Word substrings
Cotrimoxazole
Wethersfield
Alien Fury: Countdown to Invasion
oxa
:
field
Christopher Manning
Features: Word shapes
Varicella-zoster | Xx-xxx |
mRNA | xXXX |
CPA1 | XXXd |
Christopher Manning
Sequence Models for Named Entity Recognition
Christopher Manning
Maximum entropy sequence models
Maximum entropy Markov models (MEMMs) or Conditional Markov models
Christopher Manning
Sequence problems
VBG | NN | IN | DT | NN | IN | NN |
Chasing | opportunity | in | an | age | of | upheaval |
POS tagging
B | B | I | I | B | I | B | I | B | B |
而 | 相 | 对 | 于 | 这 | 些 | 品 | 牌 | 的 | 价 |
Word segmentation
PERS | O | O | O | ORG | ORG |
Murdoch | discusses | future | of | News | Corp. |
Named entity recognition
Text segmen-tation
Q
A
Q
A
A
A
Q
A
Christopher Manning
MEMM inference in systems
-3 | -2 | -1 | 0 | +1 |
DT | NNP | VBD | ??? | ??? |
The | Dow | fell | 22.6 | % |
Local Context
Features
W0 | 22.6 |
W+1 | % |
W-1 | fell |
T-1 | VBD |
T-1-T-2 | NNP-VBD |
hasDigit? | true |
… | … |
(Ratnaparkhi 1996; Toutanova et al. 2003, etc.)
Decision Point
Christopher Manning
Example: POS Tagging
-3 | -2 | -1 | 0 | +1 |
DT | NNP | VBD | ??? | ??? |
The | Dow | fell | 22.6 | % |
Local Context
Features
W0 | 22.6 |
W+1 | % |
W-1 | fell |
T-1 | VBD |
T-1-T-2 | NNP-VBD |
hasDigit? | true |
… | … |
Decision Point
(Ratnaparkhi 1996; Toutanova et al. 2003, etc.)
Christopher Manning
Example: POS Tagging
-3 | -2 | -1 | 0 | +1 |
DT | NNP | VBD | ??? | ??? |
The | Dow | fell | 22.6 | % |
Local Context
Features
W0 | 22.6 |
W+1 | % |
W-1 | fell |
T-1 | VBD |
T-1-T-2 | NNP-VBD |
hasDigit? | true |
… | … |
(Ratnaparkhi 1996; Toutanova et al. 2003, etc.)
Decision Point
Christopher Manning
Inference in Systems
Sequence Level
Local Level
Local
Data
Feature
Extraction
Features
Label
Optimization
Smoothing
Classifier Type
Features
Label
Sequence
Data
Maximum Entropy Models
Quadratic
Penalties
Conjugate
Gradient
Sequence Model
Inference
Local
Data
Local
Data
Christopher Manning
Greedy Inference
Sequence Model
Inference
Best Sequence
Christopher Manning
Beam Inference
Sequence Model
Inference
Best Sequence
Christopher Manning
Viterbi Inference
Sequence Model
Inference
Best Sequence
Christopher Manning
CRFs [Lafferty, Pereira, and McCallum 2001]
Christopher Manning
Maximum entropy sequence models
Maximum entropy Markov models (MEMMs) or Conditional Markov models
Christopher Manning