What Is Computational Semantics? What Is Functional .

2y ago
44 Views
2 Downloads
6.48 MB
17 Pages
Last View : 17d ago
Last Download : 3m ago
Upload by : Julia Hutchens
Transcription

What is Computational Semantics?What is Functional Programming?What is the Connection?Jan van Eijck, CWI Amsterdam and Uil-OTS UtrechtChristina Unger, Uil-OTS UtrechtLOT Summer School, June 15, 2009

Overview What is computational semantics? Why use functional programming for computational semantics? Today, as a first sample of computational semantics, we present anatural language engine for talking about classes. Material for this course is taken from Jan van Eijck and ChristinaUnger, Computational Semantics with Functional Programming,Cambridge University Press 2009 (to appear). http://www.cwi.nl/ jve/cs/ But first: Getting Started with Haskell

What is computational semantics?The art and science of computing or processing meanings ‘meaning’: informational content, as opposed to syntactic ‘form’ ‘computing’: what computers do ‘processing’: what happens in the human brain

A Brief History of Formal Linguistics

A Brief History of Formal Linguistics1916 Ferdinand de Saussure, Cours de linguistique générale publishedposthumously. Natural language may be analyzed as a formal system.1957 Noam Chomsky, Syntactic Structures, proposes to define naturallanguages as sets of grammatical sentences, and to study theirstructure with formal (mathematical) means. Presents a formalgrammar for a fragment of English.

1970 Richard Montague, English as a Formal Language, proposes toextend the Chomskyan program to semantics and pragmatics. Presentsa formal grammar for a fragment of English, including semantics(rules for computing meanings). Links the study of natural language to the study of formal languages (languages from logic andcomputer science).

Richard Montague (1930-1971)Developed higher-order typed intensional logic with a possible-worldssemantics and a formal pragmatics incorporating indexical pronounsand tenses.Program in semantics (around 1970): universal grammar.Towards a philosophically satisfactory and logically precise account ofsyntax, semantics, and pragmatics, covering both formal and naturallanguages.

“The Proper Treatment of Quantification was as profound for semanticsas Chomsky’s Syntactic Structures was for syntax.” (Barbara Parteeon Montague, in the Encyclopedia of Language and Linguistics.) Chomsky: English can be described as a formal system. Montague: English can be described as a formal system with aformal semantics, and with a formal pragmatics.Montague’s program can be viewed as an extension of Chomsky’s program.

The Program of Montague Grammar Montague’s thesis: there is no essential difference between thesemantics of natural languages and that of formal languages (suchas that of predicate logic, or programming languages). The method of fragments: UG [6], EFL [5], PTQ [4] The misleading form thesis (Russell, Quine) Proposed solution to the misleading form thesis Key challenges: quantification, anaphoric linking, tense, intensionality.

Misleading FormAristotle’s theory of quantification has two logical defects:1. Quantifier combinations are not treated; only one quantifier persentence is allowed.2. ‘Non-standard quantifiers’ such as most, half of, at least five, . . . arenot covered.Frege’s theory of quantification removed the first defect.The Fregean view of quantifiers in natural language: quantified NounPhrases are systematically misleading expressions.Their natural language syntax does not correspond to their logic:“Nobody is on the road” ; x(Person(x) OnTheRoad(x))

Solution to the Misleading Form Thesisexpressioneveryprincessevery princesslaughedevery princess laughedwhere every is a nametranslationtypeevery(e t) ((e t) t)P(e t)every P(e t) tS(e t)(every P ) Stfor the constant λP λQ. x(P x Qx).

From semantics to pragmatics Analysing communication as flow of knowledge. Logical tool: Dynamic Epistemic Logic Computational tool: Dynamic Epistemic Model Checking DEMO: Epistemic Model Checker [1] Will be discussed on the last day of the course.

A Brief History of Functional Programming1932 Alonzo Church presents the lambda calculus1937 Alan Turing proves that lambda calculus and Turing machineshave the same computational power.1958 John McCarthy starts to implement LISP.1978-9 Robin Milner cs develop ML.1987 Agreement on a common standard for lazy purely functional programming: Haskell.

http://www.haskell.orghttp://www.haskell.org/hugs/

Natural language analysis and functional programming Usefulness of typed lambda calculus for NL analysis. Linguist Barbara Partee: “Lambda’s have changed my life.” Computational linguistics: From Prolog to Haskell? Appeal of Prolog: Prolog-style unification [8], ‘Parsing as Deduction’ [7] But a new trend is emerging [2, 3] NLP Resources in Haskell: seehttp://www.haskell.org/haskellwiki/Applications andlibraries/Linguistics

References[1] Jan van Eijck. DEMO — a demo of epistemic modelling. In Johan van Benthem, Dov Gabbay, and Benedikt Löwe, editors, Interactive Logic — Proceedings of the 7th Augustus de Morgan Workshop,number 1 in Texts in Logic and Games, pages 305–363. AmsterdamUniversity Press, 2007.[2] R. Frost and J. Launchbury. Constructing natural language interpreters in a lazy functional language. The Computer Journal,32(2):108–121, 1989.[3] Richard A. Frost. Realization of natural language interfaces usinglazy functional programming. ACM Comput. Surv., 38(4), 2006.[4] R. Montague. The proper treatment of quantification in ordinaryEnglish. In J. Hintikka, editor, Approaches to Natural Language,pages 221–242. Reidel, 1973.

[5] R. Montague. English as a formal language. In R.H. Thomason,editor, Formal Philosophy; Selected Papers of Richard Montague,pages 188–221. Yale University Press, New Haven and London,1974.[6] R. Montague. Universal grammar. In R.H. Thomason, editor, FormalPhilosophy; Selected Papers of Richard Montague, pages 222–246.Yale University Press, New Haven and London, 1974.[7] F.C.N. Pereira and H.D. Warren. Parsing as deduction. In Proceedings of the 21st Annual Meeting of the ACL, pages 137–111. MIT,Cambridge, Mass., 1983.[8] S.M. Shieber. An Introduction to Unification Based Approaches toGrammar, volume 4 of CSLI Lecture Notes. CSLI, Stanford, 1986.Distributed by University of Chicago Press.

What is computational semantics? Why use functional programming for computational semantics? Today, as a rst sample of computational semantics, we present a natural language engine for talking about classes. Material for this course is taken from Jan van Eijck and Christina Unger,Comp

Related Documents:

Computational semantics is an interdisciplinary area combining insights from formal semantics, computational linguistics, knowledge representation and automated reasoning. The main goal of computational semantics is to find techniques for automatically con-structing semantic representation

Introduction 1 Introduction 2 Meaning 3 Types and Model Structure 4 Montague Semantics 5 Phenomena at the Syntax-Semantics Interface 6 Abstract Categorial Grammars 7 Underspeci cation 8 Discourse 9 Selected Bibliography Sylvain Pogodalla (LORIA/INRIA) Computational Semantics

Formal Specification [Best – E.g. Denotational Semantics– RD Tennent, Operational Semantics, Axiomatic Semantics] E.g. Scheme R5RS, R6RS Denotational Semantics Ada83 – “Towards a Formal Description of Ada”, Lecture Notes in Computer Science, 1980. C Denotational Semantics

computational semantics, and when a property should be deemed “true” computationally. Recently, Datta et al. in [13] gave a computational semantics to the syntax of their Protocol Composition Logic of [16,12] (cf. als

Formal semantics: The meaning of an utterance depends upon its form, i.e., its linguistic structure. The tools used to account for the meanings of utterances are formal mathematical tool. Truth conditional semantics. Model theoretic semantics. Ph

Computational Semantics form and content, or in terms of its status in learning and reasoning—without denying that key judgments require the synthesis of knowledge of both kinds. This perspective informs my

Computational Semantics Aljoscha Burchardt Stephan Walter Alexander Koller Michael Kohlhase Patrick Blackburn Johan Bos MiLCA, Saarbrücken. Abstract The most central fact about natural language is that it has meaning. Semantics is the study of meaning. In formal sema

Dana Pensiun yang pendiriannya telah disahkan oleh Menteri Keuangan atau kepada BPJS Ketenagakerjaan. 2. a. Selanjutnya dihitung penghasilan neto setahun, yaitu jumlah penghasilan neto sebulan dikalikan 12. b. Dalam hal seorang pegawai tetap dengan kewajiban pajak subjektifnya sebagai Wajib Pajak dalam negeri sudah ada sejak awal tahun, tetapi mulai bekerja setelah bulan Januari, maka .