CATEGORIAL GRAMMARS AND THE NATURAL LANGUAGE PROCESSING Ismaïl Biskri Mathematics and Computer-Science Department University of Quebec in Trois-Rivières.

Slides:



Advertisements
Similar presentations
Problems of syntax-semantics interface ESSLLI 02 Trento.
Advertisements

But… Why not to have a syntax built on the same principles as those of semantic composition?
Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Feature Structures and Unification.
ICE1341 Programming Languages Spring 2005 Lecture #6 Lecture #6 In-Young Ko iko.AT. icu.ac.kr iko.AT. icu.ac.kr Information and Communications University.
Knowledge Representation. Essential to artificial intelligence are methods of representing knowledge. A number of methods have been developed, including:
Linguistic Theory Lecture 7 About Nothing. Nothing in grammar Language often contains irregular paradigms where one or more expected forms are absent.
CS 355 – Programming Languages
Artificial Intelligence First-Order Predicate Logic -
NLP and Speech 2004 Feature Structures Feature Structures and Unification.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
Axiomatic Semantics Dr. M Al-Mulhem ICS
CS 330 Programming Languages 09 / 18 / 2007 Instructor: Michael Eckmann.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Feature Structures and Unification.
Dr. Muhammed Al-Mulhem 1ICS ICS 535 Design and Implementation of Programming Languages Part 1 Fundamentals (Chapter 4) Axiomatic Semantics ICS 535.
 Analysis and Synthesis:  Analysis start with a logic diagram and proceed to a formal description of the function performed by that circuit, such as.
CS 330 Programming Languages 09 / 16 / 2008 Instructor: Michael Eckmann.
Dr. Muhammed Al-Mulhem 1ICS ICS 535 Design and Implementation of Programming Languages Part 1 Fundamentals (Chapter 4) Denotational Semantics ICS.
C. Varela1 Lambda Calculus alpha-renaming, beta reduction, applicative and normal evaluation orders, Church-Rosser theorem, combinators Carlos Varela Rennselaer.
Reflexive -- First sentence of proof is: (1) Let x  Z (2) Let (x,x)  R. (3) Let (x,x)  I (4) Let x  R.
Boolean Algebra. Binary Logic and Gates Binary variables take on one of two values. Logical operators operate on binary values and binary variables. Basic.
Gate Circuits and Boolean Equations BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
February 2009Introduction to Semantics1 Logic, Representation and Inference Introduction to Semantics What is semantics for? Role of FOL Montague Approach.
October 2004csa4050: Semantics II1 CSA4050: Advanced Topics in NLP Semantics II The Lambda Calculus Semantic Representation Encoding in Prolog.
IKI a-Boolean Algebra Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes at UIUC,
Binary Logic and Gates Binary variables take on one of two values.
Program Analysis and Verification Spring 2015 Program Analysis and Verification Lecture 2: Operational Semantics I Roman Manevich Ben-Gurion University.
Algebra II. To provide a quality mathematics background in order for you to succeed in future endeavors. 2.
November 2003CSA4050: Semantics I1 CSA4050: Advanced Topics in NLP Semantics I What is semantics for? Role of FOL Montague Approach.
Chapter 2: Boolean Algebra and Logic Gates. F 1 = XY’ + X’Z XYZX’Y’XY’X’ZF1F
CS 363 Comparative Programming Languages Semantics.
Artificial Intelligence: Natural Language
Semantic Construction lecture 2. Semantic Construction Is there a systematic way of constructing semantic representation from a sentence of English? This.
Albert Gatt LIN3021 Formal Semantics Lecture 4. In this lecture Compositionality in Natural Langauge revisited: The role of types The typed lambda calculus.
3.2 Semantics. 2 Semantics Attribute Grammars The Meanings of Programs: Semantics Sebesta Chapter 3.
Syntax and Semantics CIS 331 Syntax: the form or structure of the expressions, statements, and program units. Semantics: the meaning of the expressions,
Chapter 3 Describing Syntax and Semantics
Languages and Compilers
Discrete Mathematics CS 2610 February 12, Agenda Previously Finished functions Began Boolean algebras And now Continue with Boolean algebras.
Dr. Muhammed Al-MulhemICS (Denotational Semantics)
Dr. Rogelio Dávila Pérez Formal Semantics for Natural language.
November 2006Semantics I1 Natural Language Processing Semantics I What is semantics for? Role of FOL Montague Approach.
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
BOOLEAN ALGEBRA Kamrul Ahsan Teacher of
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
Copyright © 2006 Addison-Wesley. All rights reserved.1-1 ICS 410: Programming Languages Chapter 3 : Describing Syntax and Semantics Denotational Semantics.
1 First Order Logic CS 171/271 (Chapter 8) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Pauline Jacobson,  General introduction: compositionality, syntax/semantics interface, notation  The standard account  The variable-free account.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
7.2 Programming Languages - An Introduction to Informatics WMN Lab. Hye-Jin Lee.
Dr. M. Al-Mulhem Denotational Semantics 1 Chapter 4 Fundamentals (Denotational Semantics)
CHAPTER 2 Boolean algebra and Logic gates
Describing Syntax and Semantics
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
CSCE 355 Foundations of Computation
Boolean Algebra.
I ran. Is this a complete sentence? Identify the subject.
CS 105 Digital Logic Design
Natural Language Processing
Overview Part 1 – Gate Circuits and Boolean Equations
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
CSCE 355 Foundations of Computation
5.1 Midsegments of Triangles
Parts of Speech Mr. White English I.
Alain Lecomte INRIA-FUTURS (team SIGNES) & CLIPS-IMAG (Grenoble)
. Components of  in Rectangular and Cylindrical Coordinates
Natural Language Processing
NLP.
Presentation transcript:

CATEGORIAL GRAMMARS AND THE NATURAL LANGUAGE PROCESSING Ismaïl Biskri Mathematics and Computer-Science Department University of Quebec in Trois-Rivières

HUSSERL (1913) 4 Philosophical Origins. 4 Notions of : –Categorem –Syncategorem 4 Example : –Noun : Categorem –Sentence : Categorem –Verb : Syncategorem

LESNEWSKI (1922) 4 Logical foundations. 4 Two kind of expressions : –Noun –Proposition 4 Noun : objects, class of objects. 4 Proposition : statement (describing a “state”).

LESNEWSKI (1922) 4 Nouns and Propositions are Categorems. 4 Other expressions are Syncategorems. 4 Syncategorem acts like an operator. 4 Categorem acts like an operand.

LESNEWSKI (1922) Inferential System 4 We assume that we have a set of basic types 4 The set of all types is defined recursively as follows: –Basic types are types ; –If x and y are types then Fxy is a type. (F is an applicative operator ; F is applied to an expression of type x, it yields an other expression of type y)

AJDUKIEWICZ (1935) 4 Basic expressions (categories) : –Noun (N) –Sentences (S) 4 If x and y are categories then is a category 4 Reduction rules – y  x y x y x y x

AJDUKIEWICZ (1935) Example John laughs N S N S

BAR-HILLEL (1953) 4 Basic expressions (categories) : –Noun (N) –Sentences (S) 4 If x and y are categories then x/y and x\y are categories 4 Reduction rules : –x/y y  x –y y\x  x

BAR-HILLEL (1953) Example John admires Mary N(N\S)/NN N\S S

LAMBEK (1958, 1962) 4 Lambek Calculus. 4 We will use Steedman’s notation –X/Y will be X/Y –Y\X will be X\Y 4 Many axioms 4 Many inference rules 4 Many theorems

LAMBEK (1958, 1962) Axioms 4 X  X(reflexivity) 4 (X – Y) – Z  X – (Y – Z)(associativity) 4 X – (Y – Z)  (X – Y) – Z (associativity)

LAMBEK (1958, 1962) Inference rules 4 If X  Y and Y  Z then X  Z(transitivity) 4 If X – Y  Z then X  Z/Y 4 If X – Y  Z then Y  Z\X 4 If X  Z/Ythen X – Y  Z 4 If Y  Z\Xthen X – Y  Z

LAMBEK (1958, 1962) Some Theorems 4 X  (X – Y)/Y 4 (Z/Y) – Y  Z 4 Y  Z\(Z/Y) 4 (Z/Y) – (Y/X)  Z/X 4 Z/Y  (Z/X)/(Y/X) 4 (Y\X)/Z  (Y/Z)\X

ADES, STEEDMAN (1982) 4 Combinatory Categorial Grammar 4 Two concepts : –Syntactic category –Semantic category 4 Example : the category of admires is (S : admire' np2 np1\NP : np1)/NP : np2

ADES, STEEDMAN (1982) Some rules 4 Functional application (>) : –X/Y : f – Y : y  X : f y 4 Functional composition (>B) : –X/Y : f – Y/Z : g  X/Z : z(f(gz) 4 Type Raising (>T) : –X : x  Y/(Y\X) : f(fx)

ADES, STEEDMAN (1982, 1989)) Example John-loves-Mary N: John‘(S:loves‘ np2 np1\NP: np1)/NP: np2NP: Mary' >T S : pred John'/(S: pred John'\NP: John') >B S: loves' np2 John'/NP: np > S: loves' Mary' John'

BISKRI, DESCLES (1995, 1997) 4 Applicative Combinatory Categorial Grammar. 4 Canonical association between Combinatory Categorial rules and Combinators of Combinatory Logic (Curry, Feys, 1958). 4 Combinatory Categorial rules : syntactic parsing. 4 Combinatory Logic : functional semantic parsing

BISKRI, DESCLES (1995, 1997) Combinatory Logic 4 Combinators : B, C, C *, S, etc. 4 Beta-Reduction rules : B f g x  f (g x) ; C * x f  f x 4 Combinatory expression Normal Form –B C * x y z tis not in normal form –B C * x is in normal form –x (y z)is in normal form

BISKRI, DESCLES (1995, 1997) Some rules 4 Functional application (>) : –X/Y : f – Y : y  X : f y 4 Functional composition (>B) : –X/Y : f – Y/Z : g  X/Z : B f g 4 Type Raising (>T) : –X : x  Y/(Y\X) : C * x

BISKRI, DESCLES (1995, 1997) Example 1 1 [N:John]-[(S\N)/N:loves]-[N:Mary] Typed concatenated structure 2[S/(S\N):(C* John)]-[(S\N)/N:loves]-[N:Mary](>T) 3 [S/N:(B (C* John) loves)]-[N:Mary](>B) 4 [S:((B (C* John) loves) Mary)](>) Typed applicative structure 5[S : ((B (C* John) loves) Mary)] 6[S : ((C* John) (loves Mary))](B) 7[S : ((loves Mary) John)](C * )

BISKRI, DELISLE (2000) Example 2 : [N/N:la]-[N:liberté]-[(S\N)/N:renforce]-[N/N:la]-[N:démocratie] 2. [N:(la-liberté)]-[(S\N)/N:renforce]-[N/N:la]-[N:démocratie](>) 3. [S/(S\N):(C * (la liberté))]-[(S\N)/N: renforce]-[N/N: la]-[N: démocratie](>T) 4. [S/N : (B (C * (la liberté)) renforce)]-[N/N : la]-[N : démocratie](>B) 5. [S/N : (B (B (C * (la liberté)) renforce) la)]-[N : démocratie](>B) 6. [S : ((B (B (C * (la liberté)) renforce) la) démocratie)](>) 7. [S : ((B (B (C * (la liberté)) renforce) la) démocratie)] 8. [S : ((B (C * (la liberté)) renforce) (la démocratie))]B 9. [S : ((C * (la liberté)) (renforce (la démocratie)))]B 10. [S : ((renforce (la démocratie)) (la liberté)))] C* 11. [S : renforce (la démocratie) (la liberté)]

BISKRI, DELISLE (2000) Example 3 1. [(S/N1)/N2:thoudaiimou]-[N1:elhouriyathou]-[N2:eddimouqratiyatha] 2. [(S/N1)/N2:thoudaiimou]-[S\(S/N1):(C*elhouriyathou)]- [N2:eddimouqratiyatha](<T) 3. [S/N2 : (B (C * elhouriyathou) thoudaiimou)]-[N2 : eddimouqratiyatha] (<Bx) 4. [S : ((B (C * elhouriyathou) thoudaiimou) eddimouqratiyatha)](>) 5. [S : ((B (C * elhouriyathou) thoudaiimou) eddimouqratiyatha)] 6. [S : ((C * elhouriyathou) (thoudaiimou eddimouqratiyatha))]B 7. [S : ((thoudaiimou eddimouqratiyatha) elhouriyathou)]C * 8. [S : thoudaiimou eddimouqratiyatha elhouriyathou]

BISKRI, DESCLES (1995) The Backward Modifier : Example 4 1[N : John]-[(S\N)/N : loves]-[N : Mary]-[(S\N)\(S\N) : madly] … 4[S : ((B (C* John) loves) Mary)]-[(S\N)\(S\N) : madly] 5[S : ((C* John) (loves Mary))]-[(S\N)\(S\N) : madly](B) 6[S/(S\N) : (C* John)]-[S\N : (loves Mary)]-[(S\N)\(S\N) : madly] (>dec) 7[S/(S\N) : (C* John)]-[S\N : (madly (loves Mary))](<) 8[S : ((C* John) (madly (loves Mary)))](>) 9[S : ((C* John) (madly (loves Mary)))] 10[S : ((madly (loves Mary)) John)](C*)

BISKRI, DESCLES (1995) Coordination a) Two segments of the same kind, with the same structure and contiguous to AND : [John loves]S/N and [William hates]S/N these pictures b) Two segments into an elliptic construction : John loves [Mary madly] and [Jenny wildly] [John] loves [Mary] and [William Jenny] c) Two segments of different structures : Mary walks [slowly] and [with happiness]. John [sings] and [plays the violin]. d) Two segments without distributivity : The flag is [white] and [red] (≠ The flag is white and the flag is red).

BISKRI, DESCLES (1995) Example 5 1[N:John]-[(S\N)/N:loves]-[N:Mary]-[CONJD:and]-[(S\N)/N:hates]- [N:Jenny]... 4[S:((B (C* John) loves) Mary)]-[CONJD:and]-[(S\N)/N:hates]-[N:Jenny] 5[S:((B (C* John) loves) Mary)]-[CONJD:and]-[S\N:(hates Jenny)] (>) 6[S:((C* John) (loves Mary))]-[CONJD:and]-[S\N:(hates Jenny)] (B) 7[S/(S\N):(C* John)]-[S\N:(loves Mary)]-[CONJD:and]-[S\N:(hates Jenny)] (>dec) 8[S/(S\N):(C* John)]-[S\N:(  and (loves Mary) (hates Jenny))] ( ) 9 [S:((C* John) (  and (loves Mary) (hates Jenny)))] (>) 10[S : ((C* John) (  and (loves Mary) (hates Jenny)))] 11[S : ((  and (loves Mary) (hates Jenny)) John)](C*) 12[S : (and ((loves Mary) John) ((hates Jenny) John))](  )