Human Language...human brains, have been armed by habits and methods, mind-tools and information, drawn from millions of other brains which are not ancestral.

Slides:



Advertisements
Similar presentations
Prolog programming....Dr.Yasser Nada. Chapter 8 Parsing in Prolog Taif University Fall 2010 Dr. Yasser Ahmed nada prolog programming....Dr.Yasser Nada.
Advertisements

Computational language: week 10 Lexical Knowledge Representation concluded Syntax-based computational language Sentence structure: syntax Context free.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Feature Structures and Unification.
Natural Language Processing Lecture 2: Semantics.
Syntactic analysis using Context Free Grammars. Analysis of language Morphological analysis – Chairs, Part Of Speech (POS) tagging – The/DT man/NN left/VBD.
Language and Cognition Colombo, June 2011 Day 8 Aphasia: disorders of comprehension.
1 Grammars and Parsing Allen ’ s Chapters 3, Jurafski & Martin ’ s Chapters 8-9.
Natural Language Processing what it does what is involved why is it difficult brief history.
Fall 2008Programming Development Techniques 1 Topic 9 Symbol Manipulation Generating English Sentences Section This is an additional example to symbolic.
MORPHOLOGY - morphemes are the building blocks that make up words.
Human language development a quick overview. Language Origin...human brains, have been armed by habits and methods, mind-tools and information, drawn.
Module 14 Thought & Language.
Module 14 Thought & Language. INTRODUCTION Definitions –Cognitive approach method of studying how we process, store, and use information and how this.
Language Development Major Questions: 1) What is language/what is involved in language? 2) What are the stages of language development? 3) Is language.
A modern approach input sentence syntax analysis (parsing) semantic analysis pragmatic analysis target representation grammar lexicon semantic rules contextual.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 2.
Syntax LING October 11, 2006 Joshua Tauberer.
Knowledge Representation why bother ? what is it ? what do we represent ? how is it represented ? Kn Rep n strategies inferencing example tasks.
Artificial Intelligence Simon Lynch This session what is the subject about? course structure an example AI system.
Grammar Nuha Alwadaani.
Phonetics, Phonology, Morphology and Syntax
March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing INTRODUCTION Muhammed Al-Mulhem March 1, 2009.
THE PARTS OF SYNTAX Don’t worry, it’s just a phrase ELL113 Week 4.
Lecture 1, 7/21/2005Natural Language Processing1 CS60057 Speech &Natural Language Processing Autumn 2005 Lecture 1 21 July 2005.
Chapter 9: Thinking, Language, and Intelligence
9/8/20151 Natural Language Processing Lecture Notes 1.
CCSB354 ARTIFICIAL INTELLIGENCE (AI)
ICS611 Introduction to Compilers Set 1. What is a Compiler? A compiler is software (a program) that translates a high-level programming language to machine.
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 Friday Finish chapter 23 Homework: –Chapter 22, exercise 9.
Development of Language Language: refers to our spoken, written, or gestured words and how they are combined to communicate. Language: refers to our spoken,
CS : Language Technology for the Web/Natural Language Processing Pushpak Bhattacharyya CSE Dept., IIT Bombay Constituent Parsing and Algorithms (with.
Syntax: 10/18/2015IT 3271 Semantics: Describe the structures of programs Describe the meaning of programs Programming Languages (formal languages) -- How.
Psycholinguistic Theory
Natural Language Processing Artificial Intelligence CMSC February 28, 2002.
Introduction to CL & NLP CMSC April 1, 2003.
11 Chapter 14 Part 1 Statistical Parsing Based on slides by Ray Mooney.
Computing Science, University of Aberdeen1 CS4025: Logic-Based Semantics l Compositionality in practice l Producing logic-based meaning representations.
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.
Review of basic concepts.  The knowledge of sentences and their structure.  Syntactic rules include: ◦ The grammaticality of sentences ◦ Word order.
CPE 480 Natural Language Processing Lecture 4: Syntax Adapted from Owen Rambow’s slides for CSc Fall 2006.
PSY270 Michaela Porubanova. Language  a system of communication using sounds or symbols that enables us to express our feelings, thoughts, ideas, and.
Rules, Movement, Ambiguity
Artificial Intelligence: Natural Language
The man bites the dog man bites the dog bites the dog the dog dog Parse Tree NP A N the man bites the dog V N NP S VP A 1. Sentence  noun-phrase verb-phrase.
CSA2050 Introduction to Computational Linguistics Parsing I.
Anthropology 340 LANGUAGE AND CULTURE Course Overview.
CSE573 Autumn /23/98 Natural Language Processing Administrative –PS3 due today –PS4 out Wednesday, due Friday 3/13 (last day of class) special.
CPSC 422, Lecture 27Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 27 Nov, 16, 2015.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 2.
Natural Language Processing Slides adapted from Pedro Domingos
◦ Process of describing the structure of phrases and sentences Chapter 8 - Phrases and sentences: grammar1.
Natural Language Processing (NLP)
Understanding Naturally Conveyed Explanations of Device Behavior Michael Oltmans and Randall Davis MIT Artificial Intelligence Lab.
NATURAL LANGUAGE PROCESSING
Syntax By WJQ. Syntax : Syntax is the study of the rules governing the way words are combined to form sentences in a language, or simply, the study of.
Chapter 11 Language. Some Questions to Consider How do we understand individual words, and how are words combined to create sentences? How can we understand.
Natural Language Processing
Basic Parsing with Context Free Grammars Chapter 13
SYNTAX.
BBI 3212 ENGLISH SYNTAX AND MORPHOLOGY
Natural Language - General
Natural Language Processing
CS246: Information Retrieval
Knowledge Representation
Artificial Intelligence 2004 Speech & Natural Language Processing
Presentation transcript:

Human Language...human brains, have been armed by habits and methods, mind-tools and information, drawn from millions of other brains which are not ancestral to [them]....Comparing our brains anatomically with [any other non- human brains] would be almost beside the point, because our brains are in effect joined together into a single cognitive system that dwarfs all others. They are joined by an innovation that has invaded our brains and no others: language. [Dennett, D p.381]

human language development a quick overview

evolutionary timelines primates general timeline

human language & pre-history 50-35kyr ago technological & cultural change symbolism semantically & syntactically rich Ln by 35kyr (probably much earlier)

human physiology for language brain function... Universal Human Grammar and innate language organ [Chomsky, N & others] Language Acquisition Device [Searle, J & others]. hard-wired overlaps general learning and imprinting mechanisms builds syntactic, semantic and word meaning knowledge into cognitive substrates physiologically housed in some (possibly distributed) language organ.

human physiology for language speech... discrete, digital system using limited set of phonemes approx 40 phonemes for English some make big deal of low human larynx position allows a diverse set of phonemes but: choking; infant larynx; developed 2myr-300kyr and: aquatic apes, minor birds, !Kung & Khosa

human physiology for language speech perception... normal speech phonemes / sec phonemes smear into each other listeners can perceive upto 45 phonemes/sec (though brain probably hypothesises some) NB: Morse code operators only recognise 3 tokens/second clicks repeated times/sec is heard as a buzz.

selection pressures ie: why language evolved issue highly colored by contemporary social beliefs. NB: social traits, behavioural patterns and cognitive functionality appear different to simple evolutionary forms but subject to the same evolutionary mechanisms

task related SPs toolmaker "Man the Toolmaker" [K. Oakley in 1949] agriculturalist hunter gatherer defence: man the warmonger

socially driven Darwinian signal-evolution theory invites us to abandon traditional assumptions about honest communication and instead ask questions about competition and co-operation, selfishness versus altruism, manipulation as opposed to communication. [Knight, C. 1998b]...primate intelligence - including our own - originally evolved to solve the challenges of interacting with one another. [Cheney et al 1986] an individual is most in competition with others from its own species, from the same social group: the extended clan, smaller coalitions, even its family [Ridley, M. 1993]

socially driven deceit & negotiation interesting primate activity is often concerned with conflicting goals in a social setting. deception requires a Theory of Mind - enhanced by means of communication referring to spatially/temporally distant actions/events. peer pressure & politics chatter replaces grooming, evolves to contain socially relevant infm & leads to emergence of structure/grammar gender differences & female co-operation pregnancy, childbirth & infant parenting (midwifery & bipedalism) controversial gender differences in use & development of Ln leads to sexual selection for language various other evidence supports social foundation

other issues adaptation or exaptation the Baldwin effect memetics

Computerised Natural Language Processing (a semantic approach) a quick overview

Natural Language Processing what it does what is involved why is it difficult brief history

sentence  structured rep n s of meaning "how old is my help3.doc file?" Lisp: (query (file-detail 'date "C:/help3.doc")) "the large cat chased the rat" Logic: (  1 s 1  large(s 1 )  feline(s 1 ))  (  1 s 2  rodent(s 2 ))  chased(s 1, s 2 ) "the young boy ate a bad apple" CD Graph...see next page...

CD graph "the young boy ate a bad apple"

what is involved either (a semantic approach)... symbolic computation ie: symbols manipulated by symbol processors search & inference knowledge representation techniques or... statistical techniques & machine learning

prejudice, politics, etc ambiguity... syntactic semantic pragmatic why is it difficult

example sentences the old man the boats my car drinks petrol I saw the Eiffel Tower flying to Paris he opened the door with the key he opened the door with the squeaking hinge the boy kicked the ball under the tree the boy kicked the wall under the tree put the bottles in the box on the shelf by the door

1950sRussian  English translation 1956Chomsky 1960sPattern matching 1970sParsing & some KnRep 1980sKn & inference 1990sbig dreams small results 2000s+divergent strategies (i)continuing work with semantics (ii)much greater use of stats/machine learning - origins in late 80s? (brief) history of language processing

matching: Sir

matching: Student

matching: Elisa

a modern semantic approach input sentence syntax analysis (parsing) semantic analysis pragmatic analysis target representation grammar lexicon semantic rules contextual information morphological processing

step 1- morphological processing objective: strip words into roots & modifiers issues inflection(cat pl  cat-s) derivation(happy adj  happiness noun) compounding(toothpaste)

morphological processing - notes all(?) spoken lngs exhibit morphology easier to handle in written lngs if not iconic some morphology describes infm beyond syntax eg:proximity(Tamil, Setswana, etc) case speaker / listener peer relationship

morphology examples

step 2- syntax analysis objectives:1check for correctness 2produce phrase structure uses parsera rule-based search engine grammarcontext-free production rules lexicondictionary of words & their categories

syntax rules parts of speech rules of combination consider the cat chases the mouse all large black dogs chase cats

example 1 - using Lkit (build-lexicon '((a determiner) (cat noun) (dog noun) (the determiner) (chased verb))) (build-grammar '((s1 (sentence -> noun-phrase verb-phrase)) (np (noun-phrase -> determiner noun)) (vp (verb-phrase -> verb noun-phrase)) ))

example 1 - output (parse 'sentence '(the dog chased a cat)) complete-edge 0 5 s1 sentence (the dog...) nil s1 sentence -> (noun-phrase verb-phrase) Syntax (sentence (noun-phrase (determiner the) (noun dog)) (verb-phrase (verb chased) (noun-phrase (determiner a) (noun cat)))) Semantics (sentence)

so what ? we want meaning

Remember: "the young boy ate a bad apple" how can semantics be encoded as symbols? the boy / an apple? young/old, happy/sad, good/bad? how can semantics be generated? what can be inferred from semantics?

Reminder: "the young boy ate a bad apple"

symbolic representation of semantics (actor (root boy) (id boy#732) (tags animate human male) (qual (age (val 5) (approx 3))) (quant specific)) (action (primitve INGEST)) (object (root apple) (id nil) (tags physob veg fruit food) (qual (phy-state -4)) (quant non-specific))

semantics in lexicon a simple example (build-lexicon '((a det any ) (cat noun feline ) (chased verb hunts ) (dog noun canine ) (the det specific) ))

semantics in grammar rules (s1 (sentence -> noun-phrase verb-phrase) (actor. noun-phrase) (action. verb-phrase.action) (object. verb-phrase.object) ) (np (noun-phrase -> det noun) (det. noun) ) (vp (verb-phrase -> verb noun-phrase) (action. verb) (object. noun-phrase) )

semantics - results (parse 'sentence '(the dog chased a cat)) complete-edge 0 5 s1 sentence (the dog...) nil s1 sentence -> (noun-phrase verb-phrase) Syntax (sentence (noun-phrase (det the) (noun dog)) (verb-phrase (verb chased) (noun-phrase (det a) (noun cat)))) Semantics (sentence (actor (specific canine)) (action hunts) (object (any feline)))

semantics in lexicon - checks 1 (a det (sems. any)) (all det (sems. every)) (cat noun (sems. feline) (num. sing)) (cats noun (sems. feline) (num. plur)) (chase verb (sems. hunts) (num. plur)) (chases verb (sems. hunts) (num. sing)) (dog noun (sems. canine) (num. sing)) (dogs noun (sems. canine) (num. plur)) (the det (sems. specific))

semantics in grammar - checks 1 (s1 (sentence -> noun-phrase verb-phrase) (actor. noun-phrase.sems) (action. verb-phrase.action) (object. verb-phrase.object) ; check number of noun-phrase & verb-phrase (if (noun-phrase.number = verb- phrase.number) numeric-agreement-ok numeric-agreement-bad )

semantics - results (parse 'sentence '(the dog chases a cat)) complete-edge 0 5 s1 sentence (the dog...) nil s1 sentence -> (noun-phrase verb-phrase) Syntax (sentence (noun-phrase (det the) (noun dog)) (verb-phrase (verb chases) (noun-phrase (det a) (noun cat)))) Semantics (sentence (actor specific canine) (action. hunts) (object any feline) numeric-agreement-ok)

semantics - results (parse 'sentence '(the dogs chases a cat)) complete-edge 0 5 s1 sentence (the dog...) nil s1 sentence -> (noun-phrase verb-phrase) Syntax (sentence (noun-phrase (det the) (noun dog)) (verb-phrase (verb chases) (noun-phrase (det a) (noun cat)))) Semantics (sentence (actor specific canine) (action. hunts) (object any feline) numeric-agreement-bad)

semantics in grammar - checks 2 (s1 (sentence -> noun-phrase verb-phrase) (fail if noun-phrase.number /= verb-phrase.number) (actor. noun-phrase.sems) (action. verb-phrase.action) (object. verb-phrase.object) )

semantics - results (parse 'sentence '(the dog chases a cat)) Semantics (sentence (actor specific canine) (action. hunts) (object any feline)) (parse 'sentence '(the dogs chases a cat)).... failed....

semantics in grammar - checks 3 (s1 (sentence -> noun-phrase verb-phrase) (glitch numeric-agreement if not noun-phrase.number = verb-phrase.number) (actor. noun-phrase.sems) (action. verb-phrase.action) (object. verb-phrase.object) )

semantics - results (parse 'sentence '(the dogs chases a cat)) complete-edge 0 5 s1 sentence (the dogs...) nil Glitches: (numeric-agreement) s1 sentence -> (noun-phrase verb-phrase) Syntax (sentence (noun-phrase (det the) (noun dogs)) (verb-phrase (verb chases) (noun-phrase (det a) (noun cat)))) Semantics (sentence (actor specific canine) (action. hunts) (object any feline))

example 2 - lexicon (a det any ) (cat noun feline ) (chase verb hunts ) (dog noun canine ) (the det specific) (black adj (color black)) (large adj (size 7/10)) (small adj (size 3/10))

example 2 - grammar (build-grammar '((np (noun-phrase -> ?det *adj noun) (if det (quantification. det) (quantification undefined)) (qualifiers. *.adj) (object. noun) ))

example 2 - results (parse 'noun-phrase '(small black dog)) complete-edge 0 3 np noun-phrase (small...) nil np noun-phrase -> (?det *adj noun) Syntax (noun-phrase (adj small) (adj black) (noun dog)) Semantics (noun-phrase (quantification undefined) (qualifiers ((size. 3/10)) ((color. black))) (object canine))

example 2 - results small dogs chase the small cats and large dogs chase the large cats (sentence conjunction ((actor (quant undefined) (qual (size. 3/10)) (object. canine)) (action. hunts) (object (quant. specific) (qual (size. 3/10)) (object. feline))) ((actor (quant undefined) (qual (size. 7/10)) (object. canine)) (action. hunts) (object (quant. specific) (qual (size. 7/10)) (object. feline))))

semantic processing (one approach) semantic rules in grammar  1st stage case frame verb form  primitive action case frame disambiguate & fill additional case frame slots check references with world and/or dialog do statement level inference integrate with dialog do event sequence dialog

step-1: produce raw case frame verb cases the cat chased the rat in the kitchen the cat chased the rat into the kitchen common cases sourcestart-timeinstrument destinationend-timebeneficiary locationduration

the ambiguity problem eg: the boy kicked the ball under the tree grammar rules S  S PP S  NP VP NP  ?det *adj noun NP  NP PP

example frame #1 actor (quant specific) (tags animate male human) (qual (age (range 3 13))) (root boy) action (root kick) object (root ball) (tags manip) (posn-relative (locator beneath) (object (root tree)...etc... )

example frame #2 actor (quant specific) (tags animate male human) (qual (age (range 3 13))) (root boy) action (root kick) object (root ball) (tags manip) dest (posn-relative (locator beneath) (object (root tree)...etc... )

example verb form #1 primitive strike prohibited object (tags manip) slots instrument (part-of $actor foot) legal start-time, end-time, duration instrument, beneficiary, location illegal source, dest

example verb form #2 primitive push required object (tags manip) slots instrument (part-of $actor foot) legal source, dest, start-time, end-time, instr, beneficiary, locatn, duration

semantic processing (one approach) ×semantic rules in grammar  1st stage case frame ×verb form  primitive action case frame ×disambiguate & fill additional case frame slots Þcheck references with world and/or dialog Þdo statement level inference integrate with dialog do event sequence dialog

integration with dialog dialogs have... players (actors) props (objects) locations (from case frames) themes (derived) event sequences (from themes) plans (from themes and/or derived)

event sequence set of... players (actors) props (objects) series of... semantically encoded activities (matched) escapes, exceptions & alternatives