Chapter 23(continued) Natural Language for Communication



Similar documents
Outline of today s lecture

NATURAL LANGUAGE QUERY PROCESSING USING PROBABILISTIC CONTEXT FREE GRAMMAR

Basic Parsing Algorithms Chart Parsing

Introduction. Compiler Design CSE 504. Overview. Programming problems are easier to solve in high-level languages

English Grammar Checker

Context free grammars and predictive parsing

NATURAL LANGUAGE QUERY PROCESSING USING SEMANTIC GRAMMAR

Bottom-Up Parsing. An Introductory Example

Symbiosis of Evolutionary Techniques and Statistical Natural Language Processing

Parsing Technology and its role in Legacy Modernization. A Metaware White Paper

Scanning and parsing. Topics. Announcements Pick a partner by Monday Makeup lecture will be on Monday August 29th at 3pm

Natural Language Database Interface for the Community Based Monitoring System *

Syntaktická analýza. Ján Šturc. Zima 208

An Arabic Natural Language Interface System for a Database of the Holy Quran

Speech and Language Processing

Module Catalogue for the Bachelor Program in Computational Linguistics at the University of Heidelberg

If-Then-Else Problem (a motivating example for LR grammars)

COMP 356 Programming Language Structures Notes for Chapter 4 of Concepts of Programming Languages Scanning and Parsing

Information extraction from online XML-encoded documents

Compiler I: Syntax Analysis Human Thought

Natural Language to Relational Query by Using Parsing Compiler

Learning Translation Rules from Bilingual English Filipino Corpus

2. SEMANTIC RELATIONS

NATURAL LANGUAGE TO SQL CONVERSION SYSTEM

Scoping (Readings 7.1,7.4,7.6) Parameter passing methods (7.5) Building symbol tables (7.6)

Semantic parsing with Structured SVM Ensemble Classification Models

Comprendium Translator System Overview

A Chart Parsing implementation in Answer Set Programming

Introduction to formal semantics -

Formal Grammars and Languages

Overview of MT techniques. Malek Boualem (FT)

Chapter 3 Growing with Verbs 77

Introduction. BM1 Advanced Natural Language Processing. Alexander Koller. 17 October 2014

Introduction. Philipp Koehn. 28 January 2016

Special Topics in Computer Science

Identifying Focus, Techniques and Domain of Scientific Papers

Providing Inferential Capability to Natural Language Database Interface

Paraphrasing controlled English texts

CS143 Handout 08 Summer 2008 July 02, 2007 Bottom-Up Parsing

CSCI 3136 Principles of Programming Languages

Compiler Construction

Master of Sciences in Informatics Engineering Programming Paradigms 2005/2006. Final Examination. January 24 th, 2006

CS4025: Pragmatics. Resolving referring Expressions Interpreting intention in dialogue Conversational Implicature

Natural Language Processing

FIRST and FOLLOW sets a necessary preliminary to constructing the LL(1) parsing table

Pushdown automata. Informatics 2A: Lecture 9. Alex Simpson. 3 October, School of Informatics University of Edinburgh als@inf.ed.ac.

CALICO Journal, Volume 9 Number 1 9

03 - Lexical Analysis

Lexical analysis FORMAL LANGUAGES AND COMPILERS. Floriano Scioscia. Formal Languages and Compilers A.Y. 2015/2016

Natural Language Updates to Databases through Dialogue

Constraints in Phrase Structure Grammar

Building the Tower of Babel: Converting XML Documents to VoiceXML for Accessibility 1

Translating while Parsing

GESE Initial steps. Guide for teachers, Grades 1 3. GESE Grade 1 Introduction

A Natural Language Model of Computing with Words in Web Pages

Factoring Surface Syntactic Structures

A cloud-based editor for multilingual grammars

How To Understand And Understand A Negative In Bbg

31 Case Studies: Java Natural Language Tools Available on the Web

The study of words. Word Meaning. Lexical semantics. Synonymy. LING 130 Fall 2005 James Pustejovsky. ! What does a word mean?

Clustering Connectionist and Statistical Language Processing

Programming Languages

Language Interface for an XML. Constructing a Generic Natural. Database. Rohit Paravastu

5 mins I. Pre-Assessment The teacher will ask the children to arrange a 3-picture sequence

Metafrastes: A News Ontology-Based Information Querying Using Natural Language Processing

Teaching Formal Methods for Computational Linguistics at Uppsala University

DEFINITION OF CLAUSE AND PHRASE:

How To Complete The Danish Masters Program In Lct

A Programming Language Where the Syntax and Semantics Are Mutable at Runtime

Development of a Relational Database Management System.

DEPENDENCY PARSING JOAKIM NIVRE

Phase 2 of the D4 Project. Helmut Schmid and Sabine Schulte im Walde

Constituency. The basic units of sentence structure

The Lexicon. The Lexicon. The Lexicon. The Significance of the Lexicon. Australian? The Significance of the Lexicon 澳 大 利 亚 奥 地 利

CEFR Level A1 Level A1 Global Listening Reading Spoken Interaction Spoken Production Writing

Compiler Construction

ORAKEL: A Portable Natural Language Interface to Knowledge Bases

Discourse Processing for Context Question Answering Based on Linguistic Knowledge

LINGSTAT: AN INTERACTIVE, MACHINE-AIDED TRANSLATION SYSTEM*

Bilingual Dialogs with a Network Operating System

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science

A Knowledge-based System for Translating FOL Formulas into NL Sentences

A. Schedule: Reading, problem set #2, midterm. B. Problem set #1: Aim to have this for you by Thursday (but it could be Tuesday)

Prepositions. TLC/College of the Canyons. Prepared by Kim Haglund, M.Ed: TLC Coordinator

Elena Baralis, Silvia Chiusano Politecnico di Torino. Pag. 1. Query optimization. DBMS Architecture. Query optimizer. Query optimizer.

Syntax: Phrases. 1. The phrase

Parsing Natural Language using LDS: A Prototype

Just Married. PART 1 - Meet Neil and Julia. PART 2 - A tour around the kitchen

SYNTAX: THE ANALYSIS OF SENTENCE STRUCTURE

The International Journal of Digital Curation Volume 7, Issue

Building a Large Lexicon with Lexical Network Theory

Language provides a means of communication by sound and written

NOVEL METONYMY AND NOVEL METAPHOR AS PRIMARY PRAGMATIC PROCESSES 1. Esther Romero González and Belén Soria Clivillés

Frames and Commonsense. Winston, Chapter 10

Natural Language Processing: Mature Enough for Requirements Documents Analysis?

Sentences, Statements and Arguments

Learner s worksheet A job interview. Worksheet 1

Chinese Open Relation Extraction for Knowledge Acquisition

The Role of Sentence Structure in Recognizing Textual Entailment

Chapter 2: Algorithm Discovery and Design. Invitation to Computer Science, C++ Version, Third Edition

Transcription:

Chapter 23(continued) Natural Language for Communication

Phrase Structure Grammars Probabilistic context-free grammar (PCFG): Context free: the left-hand side of the grammar consists of a single nonterminal symbol Probabilistic: the grammar assigns a probability to every string Lexicon: list of allowable words Grammar: a collection of rules that defines a language as a set of allowable string of words Example: Fish people fish tanks Backus Naur Form (BNF) 2

Phrase Structure Grammars (continued) Probabilistic context-free grammar (PCFG): Context free: the left-hand side of the grammar consists of a single nonterminal symbol Probabilistic: the grammar assigns a probability to every string Lexicon: list of allowable words Grammar: a collection of rules that defines a language as a set of allowable string of words Example: Fish people fish tanks PCFG 3

Phrase Structure Grammars (continued) Example: Fish people fish tanks 0.9 Lexicon Grammar 0.5 0.1 0.7 0.2 0.5 0.6 0.2 Probability = 0.2 x 0.5 x 0.6 x 0.2 x 0.1 x 0.7 x 0.5 x 0.9 4

Parsing Objective: analyzing a string of words to uncover its phrase structure, given the lexicon and grammar. The result of parsing is a parse tree Top-down parse and bottom-up parse Naïve solutions: left-to-right or right-to-left parse Example: The wumpus is dead 5

Parsing (continued) Objective: analyzing a string of words to uncover its phrase structure, given the lexicon and grammar. The result of parsing is a parse tree Naïve solutions: Top-down parse and bottom-up parse Example: The wumpus is dead Efficient? Example: Have the students in section 2 of Computer Science 101 take the exam. Have the students in section 2 of Computer Science 101 taken the exam? 6

Parsing (continued) Efficient solutions: chart parsers Using dynamic programming CYK algorithm A bottom-up chart parser: (Named after its inventors, John Cocke, Daniel Younger, and Tadeo Kasami) Input: lexicon, grammar and query strings. Output: a parse tree Three major steps: Assign lexicons Compute probability of adjacent phrases Solve grammar conflict by selecting the most probable phrases 7

Parsing (continued) CYK algorithm Three major steps: Assign lexicons Compute probability of adjacent phrases Solve grammar conflict by selecting the most probable phrases Assign lexicons Solve grammar conflict Compute probability of adjacent phrases 8

Parsing (continued) Example: Fish people fish tanks Lexicon Grammar 9

Parsing (continued) Example: by Dr. Christopher Manning from Stanford 10

Augmented Parsing Methods Lexicalized PCFGs BNF notation for grammars too restrictive Augmented grammar adding logical inference to construct sentence semantics 11

Ambiguity Anaphora Indexicality Vagueness Discourse structure Metonymy Metaphor Noncompositionality 12

Ambiguity: can be lexical (polysemy), syntactic, semantic, referential I ate spaghetti with meatballs 13

Ambiguity: can be lexical (polysemy), syntactic, semantic, referential I ate spaghetti with meatballs salad 14

Ambiguity: can be lexical (polysemy), syntactic, semantic, referential I ate spaghetti with meatballs salad abandon 15

Ambiguity: can be lexical (polysemy), syntactic, semantic, referential I ate spaghetti with meatballs salad abandon a fork 16

Ambiguity: can be lexical (polysemy), syntactic, semantic, referential I ate spaghetti with meatballs salad abandon a fork a friend 17

Ambiguity Anaphora: using pronouns to refer back to entities already introduced in the text After Mary proposed to John, they found a preacher and got married. 18

Ambiguity Anaphora: using pronouns to refer back to entities already introduced in the text After Mary proposed to John, they found a preacher and got married. For the honeymoon, they went to Hawaii 19

Ambiguity Anaphora: using pronouns to refer back to entities already introduced in the text After Mary proposed to John, they found a preacher and got married. For the honeymoon, they went to Hawaii Mary saw a ring through the window and asked John for it 20

Ambiguity Anaphora: using pronouns to refer back to entities already introduced in the text After Mary proposed to John, they found a preacher and got married. For the honeymoon, they went to Hawaii Mary saw a ring through the window and asked John for it Mary threw a rock at the window and broke it 21

Ambiguity Anaphora Indexicality: indexical sentences refer to utterance situation (place, time, S/H, etc.) I am over here Why did you do that? 22

Ambiguity Anaphora Indexicality Vagueness Discourse structure Metonymy: using one noun phrase to stand for another I've read Shakespeare Chrysler announced record profits The ham sandwich on Table 4 wants another beer 23

Ambiguity Anaphora Indexicality Vagueness Discourse structure Metonymy Metaphor: Non-literal usage of words and phrases I've tried killing the process but it won't die. Its parent keeps it alive 24

Ambiguity Anaphora Indexicality Vagueness Discourse structure Metonymy Metaphor Noncompositionality basketball shoes baby shoes alligator shoes designer shoes brake shoes red book red pen red hair red herring 25

Ambiguity Anaphora Indexicality Vagueness Discourse structure Metonymy Metaphor Noncompositionality Interpreting natural language using computer agents is challenging and still an open problem (but we are doing better) 26