600.465 - Intro to NLP - J. Eisner1 Tree-Adjoining Grammar (TAG) One of several formalisms that are actually more powerful than CFG Note: CFG with features.

Slides:



Advertisements
Similar presentations
Grammars, constituency and order A grammar describes the legal strings of a language in terms of constituency and order. For example, a grammar for a fragment.
Advertisements

May 2006CLINT-LN Parsing1 Computational Linguistics Introduction Approaches to Parsing.
Simplifying CFGs There are several ways in which context-free grammars can be simplified. One natural way is to eliminate useless symbols those that cannot.
Statistical NLP: Lecture 3
LTAG Semantics on the Derivation Tree Presented by Maria I. Tchalakova.
Natural Language Processing - Feature Structures - Feature Structures and Unification.
NLP and Speech Course Review. Morphological Analyzer Lexicon Part-of-Speech (POS) Tagging Grammar Rules Parser thethe – determiner Det NP → Det.
Albert Gatt LIN3022 Natural Language Processing Lecture 8.
Insert A tree starts with the dummy node D D 200 D 7 Insert D
CS 4705 Lecture 17 Semantic Analysis: Syntax-Driven Semantics.
CIS 630 Slides for March Schedule We missed two classes. I will try to make up in April Spring break– Week of March 8 Your presentations I would.
June 7th, 2008TAG+91 Binding Theory in LTAG Lucas Champollion University of Pennsylvania
Parsing — Part II (Ambiguity, Top-down parsing, Left-recursion Removal)
1/15 Synchronous Tree-Adjoining Grammars Authors: Stuart M. Shieber and Yves Schabes Reporter: 江欣倩 Professor: 陳嘉平.
MC-TAG, flexible composition, etc. ARAVIND K. JOSHI March
CS 4705 Lecture 7 Parsing with Context-Free Grammars.
Syntactic Parsing with CFGs CMSC 723: Computational Linguistics I ― Session #7 Jimmy Lin The iSchool University of Maryland Wednesday, October 14, 2009.
1 CONTEXT-FREE GRAMMARS. NLE 2 Syntactic analysis (Parsing) S NPVP ATNNSVBD NP AT NNthechildrenate thecake.
Insertion into a B+ Tree Null Tree Ptr Data Pointer * Tree Node Ptr After Adding 8 and then 5… 85 Insert 1 : causes overflow – add a new level * 5 * 158.
Table-driven parsing Parsing performed by a finite state machine. Parsing algorithm is language-independent. FSM driven by table (s) generated automatically.
Specifying Languages CS 480/680 – Comparative Languages.
Parsing SLP Chapter 13. 7/2/2015 Speech and Language Processing - Jurafsky and Martin 2 Outline  Parsing with CFGs  Bottom-up, top-down  CKY parsing.
Compiler Construction CS 606 Sohail Aslam Lecture 2.
Context-Free Grammar CSCI-GA.2590 – Lecture 3 Ralph Grishman NYU.
1 Basic Parsing with Context Free Grammars Chapter 13 September/October 2012 Lecture 6.
Fractions that Equal Whole Numbers
Problem of the DAY Create a regular context-free grammar that generates L= {w  {a,b}* : the number of a’s in w is not divisible by 3} Hint: start by designing.
1 CPE 480 Natural Language Processing Lecture 5: Parser Asst. Prof. Nuttanart Facundes, Ph.D.
Tree-adjoining grammar (TAG) is a grammar formalism defined by Aravind Joshi and introduced in Tree-adjoining grammars are somewhat similar to context-free.
October 2005csa3180: Parsing Algorithms 11 CSA350: NLP Algorithms Sentence Parsing I The Parsing Problem Parsing as Search Top Down/Bottom Up Parsing Strategies.
1 Lecture 5: Syntax Analysis (Section 2.2) CSCI 431 Programming Languages Fall 2002 A modification of slides developed by Felix Hernandez-Campos at UNC.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 4.
For Wednesday Read chapter 23 Homework: –Chapter 22, exercises 1,4, 7, and 14.
CPE 480 Natural Language Processing Lecture 4: Syntax Adapted from Owen Rambow’s slides for CSc Fall 2006.
1 Context Free Grammars October Syntactic Grammaticality Doesn’t depend on Having heard the sentence before The sentence being true –I saw a unicorn.
NLP. Introduction to NLP Shallow parsing Useful for information extraction –noun phrases, verb phrases, locations, etc. Example –FASTUS (Appelt and Israel,
csa3050: Parsing Algorithms 11 CSA350: NLP Algorithms Parsing Algorithms 1 Top Down Bottom-Up Left Corner.
Parsing — Part II (Top-down parsing, left-recursion removal) Copyright 2003, Keith D. Cooper, Ken Kennedy & Linda Torczon, all rights reserved. Students.
Supertagging CMSC Natural Language Processing January 31, 2006.
LING 6520: Comparative Topics in Linguistics (from a computational perspective) Martha Palmer Jan 15,
CS 4705 Lecture 7 Parsing with Context-Free Grammars.
Natural Language Processing Lecture 15—10/15/2015 Jim Martin.
CPSC 422, Lecture 27Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 27 Nov, 16, 2015.
Context Free Grammars and Regular Grammars Needs for CFG Grammars and Production Rules Context Free Grammars (CFG) Regular Grammars (RG)
Semantics cCS 224n / Lx 237 Tuesday, May With slides borrowed from Jason Eisner.
CS460/626 : Natural Language Processing/Speech, NLP and the Web (Lecture 25– Probabilistic Parsing) Pushpak Bhattacharyya CSE Dept., IIT Bombay 14 th March,
Syntax Analysis By Noor Dhia Syntax analysis:- Syntax analysis or parsing is the most important phase of a compiler. The syntax analyzer considers.
Parsing with Context Free Grammars. Slide 1 Outline Why should you care? Parsing Top-Down Parsing Bottom-Up Parsing Bottom-Up Space (an example) Top -
Describing Syntax and Semantics Chapter 3: Describing Syntax and Semantics Lectures # 6.
Chapter 3: Describing Syntax and Semantics
CSC 594 Topics in AI – Natural Language Processing
Embedded Clauses in TAG
Parsing — Part II (Top-down parsing, left-recursion removal)
Parsing & Context-Free Grammars
CS510 Compiler Lecture 4.
Basic Parsing with Context Free Grammars Chapter 13
Syntax Specification and Analysis
Parsing — Part II (Top-down parsing, left-recursion removal)
Statistical NLP Spring 2011
Parsing Techniques.
CSCI 5832 Natural Language Processing
Lecture 3: Introduction to Syntax (Cont’)
Compiler Design 4. Language Grammars
Instructor: Nick Cercone CSEB -
CSCI 5832 Natural Language Processing
Parsing — Part II (Top-down parsing, left-recursion removal)
Operator precedence and AST’s
Parsing I: CFGs & the Earley Parser
Tree-Adjoining Grammar (TAG)
Operator Precedence and Associativity
Presentation transcript:

Intro to NLP - J. Eisner1 Tree-Adjoining Grammar (TAG) One of several formalisms that are actually more powerful than CFG Note: CFG with features isn’t any more powerful than vanilla CFG. (Why? what do we mean by “more powerful”?)

Intro to NLP - J. Eisner2 Read the Transparencies  This lecture used transparencies.  But here are some very brief notes to remind you what we covered.  The transparencies are now online, too.

Intro to NLP - J. Eisner3 What CFG and TAG Share  Build a tree from a bunch of tree fragments  technically, build a derived tree from elementary trees  The collection of allowed fragments is the grammar!  The fragments might correspond to context-free rules, but they might be bigger as in TAG  Semantics associated with every fragment

Intro to NLP - J. Eisner4 Substitution  Substitution: Stick an appropriate initial tree fragment at the bottom of a tree (to expand a childless nonterminal node)  Fills semantic slots of other words  Get templates and idioms for free: “NP called NP up,” “NP kicked the bucket”

Intro to NLP - J. Eisner5 Adjunction  Adjunction: Stick an appropriate auxiliary tree fragment into the middle of a tree  Splits a node into two parts and sticks some material between them  Good for adding optional modifiers  Good for long-distance dependencies  Why insert into the middle?  Because the insertion doesn’t affect the specified semantic relations among nodes in the original fragment

Intro to NLP - J. Eisner6 Features  Still need features with TAGs  Every elementary tree has some features  If a node can be split, it must specify which features will get associated with the top half vs. bottom half  Have to do unification or checking to figure out the values of the features after all the substitution and adjunction is done. This tells us how to do morphology legally.