CSE573 Autumn 1997 1 02/23/98 Natural Language Processing Administrative –PS3 due today –PS4 out Wednesday, due Friday 3/13 (last day of class) special.

Slides:



Advertisements
Similar presentations
Syntax and Context-Free Grammars Julia Hirschberg CS 4705 Slides with contributions from Owen Rambow, Kathy McKeown, Dan Jurafsky and James Martin.
Advertisements

Grammars, Languages and Parse Trees. Language Let V be an alphabet or vocabulary V* is set of all strings over V A language L is a subset of V*, i.e.,
Statistical NLP: Lecture 3
GRAMMAR & PARSING (Syntactic Analysis) NLP- WEEK 4.
LING NLP 1 Introduction to Computational Linguistics Martha Palmer April 19, 2006.
For Monday Read Chapter 23, sections 3-4 Homework –Chapter 23, exercises 1, 6, 14, 19 –Do them in order. Do NOT read ahead.
1 Words and the Lexicon September 10th 2009 Lecture #3.
NLP and Speech Course Review. Morphological Analyzer Lexicon Part-of-Speech (POS) Tagging Grammar Rules Parser thethe – determiner Det NP → Det.
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
Language Specfication and Implementation - PART II: Semantics of Procedural Programming Languages Lee McCluskey Department of Computing and Mathematical.
CHAPTER 7 Natural Language Processing. Natural language processing is a branch of AI whose goal is to facilitate communication between humans and computers.
Machine Learning in Natural Language Processing Noriko Tomuro November 16, 2006.
Artificial Intelligence 2004 Natural Language Processing - Syntax and Parsing - Language Syntax Parsing.
A Conversational Agent to Navigate in Virtual Worlds CHI 2000 Workshop on Natural Language Interfaces The Hague, The Netherlands Pierre Nugues, Christophe.
March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing INTRODUCTION Muhammed Al-Mulhem March 1, 2009.
Statistical Natural Language Processing. What is NLP?  Natural Language Processing (NLP), or Computational Linguistics, is concerned with theoretical.
11 CS 388: Natural Language Processing: Syntactic Parsing Raymond J. Mooney University of Texas at Austin.
Lecture 1, 7/21/2005Natural Language Processing1 CS60057 Speech &Natural Language Processing Autumn 2005 Lecture 1 21 July 2005.
9/8/20151 Natural Language Processing Lecture Notes 1.
CCSB354 ARTIFICIAL INTELLIGENCE (AI)
Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
1 CS 385 Fall 2006 Chapter 14 Understanding Natural Language (omit 14.4)
For Monday Read chapter 23, sections 1-2 FOIL exercise due.
For Friday Finish chapter 23 Homework: –Chapter 22, exercise 9.
CS : Language Technology for the Web/Natural Language Processing Pushpak Bhattacharyya CSE Dept., IIT Bombay Constituent Parsing and Algorithms (with.
Understanding Natural Language
A Procedural Model of Language Understanding Terry Winograd in Schank and Colby, eds., Computer Models of Thought and Language, Freeman, 1973 발표자 : 소길자.
Introduction to CL & NLP CMSC April 1, 2003.
PARSING David Kauchak CS159 – Spring 2011 some slides adapted from Ray Mooney.
Levels of Language 6 Levels of Language. Levels of Language Aspect of language are often referred to as 'language levels'. To look carefully at language.
Transition Network Grammars for Natural Language Analysis - W. A. Woods In-Su Yoon Pusan National University School of Electrical and Computer Engineering.
Syntax Why is the structure of language (syntax) important? How do we represent syntax? What does an example grammar for English look like? What strategies.
Artificial Intelligence: Natural Language
For Wednesday Read chapter 23 Homework: –Chapter 22, exercises 1,4, 7, and 14.
Linguistic Essentials
CPE 480 Natural Language Processing Lecture 4: Syntax Adapted from Owen Rambow’s slides for CSc Fall 2006.
CSE573 Autumn /20/98 Planning/Language Administrative –PS3 due 2/23 –Midterms back today –Next topic: Natural Language Processing reading Chapter.
Grammars Grammars can get quite complex, but are essential. Syntax: the form of the text that is valid Semantics: the meaning of the form – Sometimes semantics.
Artificial Intelligence: Natural Language
CSE573 Autumn /27/98 Natural Language Processing Administrative –New version of PS4 on the Web different interface to the Truckworld more extra.
Chart Parsing and Augmenting Grammars CSE-391: Artificial Intelligence University of Pennsylvania Matt Huenerfauth March 2005.
1 Context Free Grammars October Syntactic Grammaticality Doesn’t depend on Having heard the sentence before The sentence being true –I saw a unicorn.
CSE573 Autumn /06/98 Natural Language Processing Administrative –Example code available in code\ps4\sample directory –Last topic: Decision Tree.
Natural Language Processing Chapter 1 : Introduction.
For Friday Finish chapter 23 Homework –Chapter 23, exercise 15.
LANGUAGE IMPAIRED. ELIGIBILITY CRITERIA Language Impaired (LI) An impairment in the language system is an abnormal processing or production of: Form including.
CPSC 422, Lecture 27Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 27 Nov, 16, 2015.
Natural Language Processing Slides adapted from Pedro Domingos
Language Language - a system for combining symbols (such as words) so that an unlimited number of meaningful statements can be made for the purpose of.
◦ Process of describing the structure of phrases and sentences Chapter 8 - Phrases and sentences: grammar1.
Parsing and Code Generation Set 24. Parser Construction Most of the work involved in constructing a parser is carried out automatically by a program,
1 An Introduction to Computational Linguistics Mohammad Bahrani.
CSE573 Autumn /02/98 Natural Language Processing Administrative –PS4 support code now in the NT course area Truckworld interface (stop, start,
GRAMMARS & PARSING. Parser Construction Most of the work involved in constructing a parser is carried out automatically by a program, referred to as a.
1 Dictionary priorities, e- dictionaries of compounds, morphological mode Cvetana Krstev & Duško Vitas.
For Monday Read chapter 26 Homework: –Chapter 23, exercises 8 and 9.
NATURAL LANGUAGE PROCESSING
PARSING David Kauchak CS159 – Fall Admin Assignment 3 Quiz #1  High: 36  Average: 33 (92%)  Median: 33.5 (93%)
CSE573 Autumn /04/98 Natural Language Processing Administrative –Example code available in code\ps4\sample directory Last time –using features.
Formal grammars A formal grammar is a system for defining the syntax of a language by specifying sequences of symbols or sentences that are considered.
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 -
Lecture – VIII Monojit Choudhury RS, CSE, IIT Kharagpur
CS : Speech, NLP and the Web/Topics in AI
Natural Language Processing (NLP)
Machine Learning in Natural Language Processing
Natural Language - General
Natural Language Processing
Artificial Intelligence 2004 Speech & Natural Language Processing
Information Retrieval
Presentation transcript:

CSE573 Autumn /23/98 Natural Language Processing Administrative –PS3 due today –PS4 out Wednesday, due Friday 3/13 (last day of class) special end-of-quarter offer: turn in at the final costs 2 late days! Last time –the Graphplan algorithm This time –Graphplan –Natural language processing

CSE573 Autumn NLP Perspective An interesting cognitive problem –language is the most “human” communication modality, so it seems impossible to understand human intelligence without understanding how language works –Turing test looked on ability to communicate in an unrestricted natural language dialogue as the definition of intelligence An interesting practical problem: incredible extensions to usefulness of computers if problems could be solved in –speech recognition and understanding (no more phone menus!) –handwriting recognition and understanding (a PDA that actually works) –machine translation (electronic funds transfers and more complex multi- national transactions) –text recognition (intelligent information retrieval)

CSE573 Autumn The main problem The problem is not so well defined: take {spoken/written/textual} language as input, and... Understanding language is “AI Complete” –in order to do it you have to understand every other facet of intelligence as well --- planning, reasoning about physical systems, geometrical and spatial reasoning, diagnosis, etc. etc. The history of natural language processing in AI is a process of discovering just how difficult and deep the problem is Ways to make the problem easier –work in limited domains (newspaper stories about earthquakes) –work with simpler syntax (will respond to information requests or to simple commands but cannot understand arbitrary sentences about the domain). Example: electronic funds transfers; intelligent database front-ends; Truckworld scenarios

CSE573 Autumn The usual breakdown of language processing tasks Signal understanding: translate signals (spoken speech or written characters) into some internal symbolic form. Produce phonemes or characters. Phonology: group phonemes into morphemes Morphology: group morphemes into words Syntax: parse words into phrases, phrases into sentences Semantics: connect words to objects and concepts in some internal representation language Pragmatics: infer what is desired from what is said in a sentence Discourse: constructing an argument, negotiating an agreement, (communication among agents) We are here Bottom up processing Top down processing

CSE573 Autumn Our Main Task: A Command Processor The system will parse, interpret and execute commands in a simple world –Blocks world (in class): “Pick up the green sphere on top of the yellow cube” “Put it down next to the red cube.” –Truckworld (for the problem set): “Recycle the red broken glass.” “Refuel using the fuel drum at position 7.” Parsing: is the sentence well formed? Semantic Interpretation: –does the command make sense given the current state of the world? –what do the pronouns refer to? Execution: simple call to an execution system (Macrops)

CSE573 Autumn Our Limited Problem Arm can lift at most one object at a time Pyramid can be put on top of another block but not below Sphere cannot be put on top or below any block Actions pick up top block at current position put down block being held move the gripper to another position

CSE573 Autumn Goal of the exercise Parse commands, flagging those that are grammatically incorrect Verify that the command is legal –does a pickup sentence refer to a single object –is the gripper at the same location as that object –is the object at the top of the stack –is the gripper empty If so, “execute it”

CSE573 Autumn Sample Sentences: Grammatical and Feasible Pick up the blue pyramid. Pick up a green block. Pick up a cube. Lift the block at position 5. Move to position 3. Move to a cube. Put it down. Drop the red cube. Put down a block. (Feasible under the proper circumstances)

CSE573 Autumn Sample Sentences: Ungrammatical Break the pyramid. Lift a blocks. Pick up block. Pick up the green blue pyramid cube. Move.

CSE573 Autumn Sample Sentences: Grammatical but Infeasible Pick up the cubes. Move to position 8. Pick up the cube; Move to 3; Pick up the green sphere Pick up the green sphere; Move to 2; Put it down. Pick up a cube; Move to the pyramid; Put down the cube. Pick up the cube. Pick up a red sphere.

CSE573 Autumn Morphology (the Lexicon) The Lexicon (dictionary) is a list of all recognizable words Naive approach, just list them Redundancy problem –inconsequentially is probably best stored as a variant of the root word consequent, along with a note that it was negated, and the fact that it is an adverb Additional information required –part of speech (rock is both a noun and a verb) –singular or plural (nouns) –tense (verb) –can the verb take an object? (hit versus cried) Some typical lexicon entries –(glasses (n (agr p) (root glass)) –(detonate (v (tense present) (object t))) –(explode (v (tense present) (object t) (root detonate)))

CSE573 Autumn Lexicon for the Example

CSE573 Autumn Parsing The task: –take as input a sentence (list of symbols/words) and a grammar –produce as output whether or not the sentence is grammatical? a parse tree? Grammar as rewrite rules: S  NP VP NP NP  ADJS Noun NP  Det ADJS Noun ADJS  ADJS  Adj ADJS VP  Verb VP  Adverb Verb Det  a Det  an Det  the Noun  rock Noun  glass Noun  glasses Noun  Fred Adj  heavy Adj  broken Adj  red Actually these are lexicon entries like on the previous slide Verb  breaks Verb  recycles Verb  “Picks up” Adv  quickly Adv  carefully

CSE573 Autumn Top-down and bottom-up rewrites S  NP VP NP NP  ADJS Noun NP  Det ADJS Noun ADJS  ADJS  Adj ADJS VP  Verb VP  Adv Verb S  NP VP NP  ADJS Noun VP NP  Noun VP NP  Fred VP NP  Fred Adverb Verb NP  Fred carefully Verb NP  Fred carefully recycles NP  Fred carefully recycles Det ADJS Noun  Fred carefully recycles the ADJS Noun  Fred carefully recycles the Adj ADJS Noun  Fred carefully recycles the heavy ADJS Noun  Fred carefully recycles the heavy Adj ADJS Noun  Fred carefully recycles the heavy red ADJS Noun  Fred carefully recycles the heavy red Noun  Fred carefully recycles the heavy red rock Fred carefully recycles the heavy red rock Noun Adv Verb Det Adj Adj Noun ADJS Noun Adv Verb Det Adj Adj Noun NP Adv Verb Det Adj Adj Noun NP VP Det Adj Adj ADJS Noun NP VP Det Adj ADJS Noun NP VP Det ADJS Noun NP VP NP S To parse: Fred carefully recycles the heavy red rock

CSE573 Autumn The Parse Tree l Fred carefully recycles the heavy red rock. S NPVPNP NounADJSAdverbVerbDetADJSNoun ADJSAdj ADJSAdj Fredcarefullyrecycles the heavy red rock

CSE573 Autumn Grammar for the Example (first cut)