CSC 594 Topics in AI – Natural Language Processing

Slides:



Advertisements
Similar presentations
School of something FACULTY OF OTHER School of Computing FACULTY OF ENGINEERING Chunking: Shallow Parsing Eric Atwell, Language Research Group.
Advertisements

John Lafferty, Andrew McCallum, Fernando Pereira
Conditional Random Fields: Probabilistic Models for Segmenting and Labeling Sequence Data John Lafferty Andrew McCallum Fernando Pereira.
Logistics Course reviews Project report deadline: March 16 Poster session guidelines: – 2.5 minutes per poster (3 hrs / 55 minus overhead) – presentations.
Shallow Processing: Summary Shallow Processing Techniques for NLP Ling570 December 7, 2011.
1 CSC 594 Topics in AI – Applied Natural Language Processing Fall 2009/ Named Entity Recognition.
1 CSC 594 Topics in AI – Applied Natural Language Processing Fall 2009/ Shallow Parsing.
Conditional Random Fields
Sequence labeling and beam search LING 572 Fei Xia 2/15/07.
Maximum Entropy Model LING 572 Fei Xia 02/07-02/09/06.
1 CSC 594 Topics in AI – Applied Natural Language Processing Fall 2009/2010 Overview of NLP tasks (text pre-processing)
CS Bayesian Learning1 Bayesian Learning. CS Bayesian Learning2 States, causes, hypotheses. Observations, effect, data. We need to reconcile.
Maximum Entropy Model LING 572 Fei Xia 02/08/07. Topics in LING 572 Easy: –kNN, Rocchio, DT, DL –Feature selection, binarization, system combination –Bagging.
Maximum Entropy Model & Generalized Iterative Scaling Arindam Bose CS 621 – Artificial Intelligence 27 th August, 2007.
Statistical Natural Language Processing. What is NLP?  Natural Language Processing (NLP), or Computational Linguistics, is concerned with theoretical.
Information Retrieval in Practice
A brief maximum entropy tutorial. Overview Statistical modeling addresses the problem of modeling the behavior of a random process In constructing this.
Authors: Ting Wang, Yaoyong Li, Kalina Bontcheva, Hamish Cunningham, Ji Wang Presented by: Khalifeh Al-Jadda Automatic Extraction of Hierarchical Relations.
Graphical models for part of speech tagging
Comparative study of various Machine Learning methods For Telugu Part of Speech tagging -By Avinesh.PVS, Sudheer, Karthik IIIT - Hyderabad.
Named Entity Tagging Thanks to Dan Jurafsky, Jim Martin, Ray Mooney, Tom Mitchell for slides.
1 CS546: Machine Learning and Natural Language Discriminative vs Generative Classifiers This lecture is based on (Ng & Jordan, 02) paper and some slides.
CS774. Markov Random Field : Theory and Application Lecture 19 Kyomin Jung KAIST Nov
Maximum Entropy (ME) Maximum Entropy Markov Model (MEMM) Conditional Random Field (CRF)
OLAP Recap 3 characteristics of OLAP cubes: Large data sets ~ Gb, Tb Expected Query : Aggregation Infrequent updates Star Schema : Hierarchical Dimensions.
Prototype-Driven Learning for Sequence Models Aria Haghighi and Dan Klein University of California Berkeley Slides prepared by Andrew Carlson for the Semi-
Maximum Entropy Models and Feature Engineering CSCI-GA.2590 – Lecture 6B Ralph Grishman NYU.
MAXIMUM ENTROPY MARKOV MODEL Adapted From: Heshaam Faili University of Tehran – Dikkala Sai Nishanth – Ashwin P. Paranjape
CPSC 422, Lecture 19Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 19 Oct, 23, 2015 Slide Sources Raymond J. Mooney University of.
John Lafferty Andrew McCallum Fernando Pereira
Shallow Parsing for South Asian Languages -Himanshu Agrawal.
CS 4705 Lecture 17 Semantic Analysis: Robust Semantics.
HMM vs. Maximum Entropy for SU Detection Yang Liu 04/27/2004.
Maximum Entropy Model, Bayesian Networks, HMM, Markov Random Fields, (Hidden/Segmental) Conditional Random Fields.
Conditional Markov Models: MaxEnt Tagging and MEMMs
Information Extraction Entity Extraction: Statistical Methods Sunita Sarawagi.
A Brief Maximum Entropy Tutorial Presenter: Davidson Date: 2009/02/04 Original Author: Adam Berger, 1996/07/05
Discriminative Training and Machine Learning Approaches Machine Learning Lab, Dept. of CSIE, NCKU Chih-Pin Liao.
Graphical Models for Segmenting and Labeling Sequence Data Manoj Kumar Chinnakotla NLP-AI Seminar.
Dan Roth University of Illinois, Urbana-Champaign 7 Sequential Models Tutorial on Machine Learning in Natural.
. The EM algorithm Lecture #11 Acknowledgement: Some slides of this lecture are due to Nir Friedman.
Natural Language Processing Vasile Rus
Unsupervised Learning Part 2. Topics How to determine the K in K-means? Hierarchical clustering Soft clustering with Gaussian mixture models Expectation-Maximization.
Lecture 7: Constrained Conditional Models
OPERATING SYSTEMS CS 3502 Fall 2017
Chapter 7. Classification and Prediction
Sentiment analysis algorithms and applications: A survey
CSC 594 Topics in AI – Natural Language Processing
CSC 594 Topics in AI – Natural Language Processing
Maximum Entropy Models and Feature Engineering CSCI-GA.2591
Qian Liu CSE spring University of Pennsylvania
Conditional Random Fields for ASR
Named Entity Tagging Thanks to Dan Jurafsky, Jim Martin, Ray Mooney, Tom Mitchell for slides.
CSC 594 Topics in AI – Natural Language Processing
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 19
CSCI 5832 Natural Language Processing
CSC 594 Topics in AI – Natural Language Processing
CSC 594 Topics in AI – Natural Language Processing
Machine Learning in Natural Language Processing
Hidden Markov Models Part 2: Algorithms
CSE 574 Finite State Machines for Information Extraction
Unsupervised Learning II: Soft Clustering with Gaussian Mixture Models
CSCI 5832 Natural Language Processing
CONTEXT DEPENDENT CLASSIFICATION
LECTURE 23: INFORMATION THEORY REVIEW
Extracting Information from Diverse and Noisy Scanned Document Images
CSCI 5832 Natural Language Processing
Implementation of Learning Systems
The Improved Iterative Scaling Algorithm: A gentle Introduction
Extracting Information from Diverse and Noisy Scanned Document Images
Presentation transcript:

CSC 594 Topics in AI – Natural Language Processing Spring 2018 9. Named Entity Recognition

Named Entity Recognition Named Entities (NEs) are proper names in texts, i.e. the names of persons, organizations, locations, times and quantities NE Recognition (NER) is a sub-task of Information Extraction (IE) NER is to process a text and identify named entities e.g. “U.N. official Ekeus heads for Baghdad.” NER is also an important task for texts in specific domains such as biomedical texts Source: J. Choi, CSE842, MSU; Marti Hearst, i256, at UC Berkeley

Difficulties with NER Names are too numerous to include in dictionaries Variations e.g. John Smith, Mr Smith, John Changing constantly new names invent unknown words Ambiguities Same name refers to different entities, e.g. JFK – the former president JFK – his son JFK – airport in NY Source: J. Choi, CSE842, MSU

Two Kinds of NER Approaches Knowledge Engineering rule-based developed by experienced language engineers make use of human intuition requires only small amount of training data development could be very time consuming some changes may be hard to accommodate Learning Systems use statistics or other machine learning developers do not need LE expertise requires large amounts of annotated training data some changes may require re-annotation of the entire training corpus annotators are cheap (but you get what you pay for!) Source: Marti Hearst, i256, at UC Berkeley

Landscape of IE/NER Techniques Any of these models can be used to capture words, formatting or both. Lexicons Alabama Alaska … Wisconsin Wyoming Abraham Lincoln was born in Kentucky. member? Classify Pre-segmented Candidates Classifier which class? Sliding Window Try alternate window sizes: Boundary Models BEGIN END Context Free Grammars NNP V P NP PP VP S Most likely parse? Finite State Machines Most likely state sequence? Source: Marti Hearst, i256, at UC Berkeley

CoNLL-2003 Shared Task: Language-Independent Named Entity Recognition CoNLL – Conference on Natural Language Learning by the ACL's Special Interest Group on Natural Language Learning Shared Task: Language-Independent Named Entity Recognition Goal: Identify boundaries and types of named entities 4 entity types: Person, Organization, Location, Misc. Data: Use the IOB notation B- -- beginning of a chunk/NE I- -- internal of a chunk/NE O – outside of any chunk/NE 4 pieces of info for each term Word POS Chunk EntityType Source: Marti Hearst, i256, at UC Berkeley

Details on Training/Test Sets Reuters Newswire + European Corpus Initiative Source: Marti Hearst, i256, at UC Berkeley

Evaluation of Single Entity Extraction Source: Andrew McCallum, UMass Amherst

Summary of Results 16 systems participated Machine Learning Techniques Combinations of Maximum Entropy Models (5) + Hidden Markov Models (4) + Winnow/Perceptron (4) Others used once were Support Vector Machines, Conditional Random Fields (CRF), Transformation-Based learning, AdaBoost, and memory-based learning Combining techniques often worked well Features Choice of features is at least as important as ML method Top-scoring systems used many types No one feature stands out as essential (other than words) Source: Marti Hearst, i256, at UC Berkeley

Precision, Recall, and F-Scores * * Not significantly different Source: Marti Hearst, i256, at UC Berkeley

State of the Art Performance Named entity recognition Person, Location, Organization, … F1 in high 80’s or low- to mid-90’s However, performance depends on the entity types [Wikipedia] At least two hierarchies of named entity types have been proposed in the literature. BBN categories [1], proposed in 2002, is used for Question Answering and consists of 29 types and 64 subtypes. Sekine's extended hierarchy [2], proposed in 2002, is made of 200 subtypes. Also, various domains use different entity types (e.g. concepts in biomedical texts)

Sequence Labeling Inputs: x = (x1, …, xn) Labels: y = (y1, …, yn) Typical goal: Given x, predict y Example sequence labeling tasks Part-of-speech tagging Named Entity Recognition (NER) Target class/label is the entity type, in IOB notation Word POS Chunk EntityType Source: Andrew McCallum, UMass Amherst

Methods for Sequence Labeling Typically the following methods are used for NER: Hidden Markov Model (HMM) Maximum Entropy Classifier (MaxEnt) Maximum Entropy Markov Model (MEMM) Conditional Random Fields (CRF) These are all classifiers (i.e., supervised learning) which model sequences (rather than individual random variables)

Instance/word Features for NER Characteristics of the token & text in a surrounding window. Shape/orthographic features Source: Jurafsky & Martin “Speech and Language Processing”

a) Hidden Markov Models (HMMs) Source: Andrew McCallum, UMass Amherst

NER with HMMs Source: Andrew McCallum, UMass Amherst

We want More than an Atomic View of Words Would like richer representation of text: many arbitrary, overlapping features of the words. Source: Andrew McCallum, UMass Amherst

However… These arbitrary features are not independent. Multiple levels of granularity (chars, words, phrases) Multiple dependent modalities (words, formatting, layout) Past & future Possible solutions: Model dependencies Ignore dependencies Conditional Sequence Models Source: Andrew McCallum, UMass Amherst

b) Maximum Entropy Classifier Conditional model p(y|x). Do not waste effort modeling p(x), since x is given at test time anyway. Allows more complicated input features, since we do not need to model dependencies between them. Feature functions f(x,y): f1(x,y) = { word is Boston & y=Location } f2(x,y) = { first letter capitalized & y=Name } f3(x,y) = { x is an HTML link & y=Location} Source: Andrew McCallum, UMass Amherst

Maximum Entropy Models Same as multinomial logistic regression (thus an exponential model for n-way classification) Features are constraints on the model. Of all possible models, we choose that which maximizes the entropy of all models that satisfy these constraints. Choosing one with less entropy means we are adding information that is not justified by the empirical evidence. Source: Jason Balbridge, U of Texas at Austin

MaxEnt: A Simple Example Say we have an unknown probability distribution p(x,y), where x  {a,b} and y  {0,1}. We only know that p(a,0)+p(b,0)=.6. Well, actually we also know that x,y p(x,y)=1 since p is a probability distribution. There are infinitely many consistent distributions conforming to the constraint. Source: Jason Balbridge, U of Texas at Austin

MaxEnt: A Simple Example (cont.) Principle of Maximum Entropy recommends non-committal assignment of probabilities, subject to the constraints. What if we also knew that p(a,0)+p(a,1)=.6? Source: Jason Balbridge, U of Texas at Austin

MaxEnt: A Simple Example (cont.) An observation such as p(a,0)+p(b,0)=.6 is implemented as a constraint on the model p’s expectation of a feature f : Epf =.6 In general, where f(x,y) is an indicator function for the feature f (and there is one function for each feature; below is one example): y = 0 Source: Jason Balbridge, U of Texas at Austin

Maximizing Entropy To find the maximum entropy model, our objective is to maximize the log likelihood: subject to the known constraints. Note: - p(x,y) log(p(x,y)) is the entropy of p(x,y), which is the given model p. In summary, “the intuition of maximum entropy is to build a distribution by continuously adding features. Each feature is an indicator function, which picks out a subset of the training observations. For each feature, we add a constraint on our total distribution, specifying that our distribution for this subset should matcc with the empirical distribution that we saw in our training data. We then choose the maximum entropy distribution that otherwise accords with these constraints.” Source: Jason Balbridge, U of Texas at Austin; Jurafsky & Martin “Speech and Language Processing”

MaxEnt Classification To identify the most probable label for a particular context x, we calculate: Source: Jason Balbridge, U of Texas at Austin

d) Conditional Random Fields (CRF) Conditionally-trained, undirected graphical model. Source: Andrew McCallum, UMass Amherst

Characteristics of CRFs In CRF, the graph structure is often a linear chain, where the state sequence (S) connects St-1 and St, and each state Si is dependent on the observation sequence (O). CRF is a more general and expressive modeling technique than HMM, since it can model the dependency of each state on maximally the whole/entire observation sequence (not just its corresponding output unit). Source: Andrew McCallum, UMass Amherst

CRFs CRFs are widely used and applied in NLP research. CRFs give state-the-art results in many domains and tasks. Part-of-speech tagging Named Entity Recognition Gene prediction Chinese word segmentation Extracting information from research papers. etc. Source: Andrew McCallum, UMass Amherst

For a standard linear-chain structure: Source: Andrew McCallum, UMass Amherst