1 Natural Language Processing Gholamreza Ghassem-Sani.

Slides:



Advertisements
Similar presentations
Natural Language Processing (or NLP) Reading: Chapter 1 from Jurafsky and Martin, Speech and Language Processing: An Introduction to Natural Language Processing,
Advertisements

For Friday No reading Homework –Chapter 23, exercises 1, 13, 14, 19 –Not as bad as it sounds –Do them IN ORDER – do not read ahead here.
For Monday Read Chapter 23, sections 3-4 Homework –Chapter 23, exercises 1, 6, 14, 19 –Do them in order. Do NOT read ahead.
Natural Language and Speech Processing Creation of computational models of the understanding and the generation of natural language. Different fields coming.
Introduction to Linguistics and Basic Terms
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CS147 - Terry Winograd - 1 Lecture 14 – Agents and Natural Language Terry Winograd CS147 - Introduction to Human-Computer Interaction Design Computer Science.
Natural Language Processing AI - Weeks 19 & 20 Natural Language Processing Lee McCluskey, room 2/07
Introduction to CL Session 1: 7/08/2011. What is computational linguistics? Processing natural language text by computers  for practical applications.
CHAPTER 7 Natural Language Processing. Natural language processing is a branch of AI whose goal is to facilitate communication between humans and computers.
PSY 369: Psycholinguistics Some basic linguistic theory part3.
1 4 questions (Revisited) What are our underlying assumptions about intelligence? What kinds of techniques will be useful for solving AI problems? At what.
TRANSFORMATIONAL GRAMMAR An introduction. LINGUISTICS Linguistics Traditional Before 1930 Structural 40s -50s Transformational ((Chomsky 1957.
Natural Language Processing Prof: Jason Eisner Webpage: syllabus, announcements, slides, homeworks.
1 Natural Language Processing INTRODUCTION Husni Al-Muhtaseb Tuesday, February 20, 2007.
March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing INTRODUCTION Muhammed Al-Mulhem March 1, 2009.
Lecture 1, 7/21/2005Natural Language Processing1 CS60057 Speech &Natural Language Processing Autumn 2005 Lecture 1 21 July 2005.
Context Free Grammars Reading: Chap 12-13, Jurafsky & Martin This slide set was adapted from J. Martin, U. Colorado Instructor: Paul Tarau, based on Rada.
9/8/20151 Natural Language Processing Lecture Notes 1.
Introduction to Natural Language Processing Heshaam Faili University of Tehran.
1 Ling 569: Introduction to Computational Linguistics Jason Eisner Johns Hopkins University Tu/Th 1:30-3:20 (also this Fri 1-5)
CSCI 4410 Introduction to Artificial Intelligence.
Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
For Friday Finish chapter 23 Homework: –Chapter 22, exercise 9.
1 Natural Language Processing Gholamreza Ghassem-Sani Fall 1383.
LANGUAGE. VERBAL AND NONVERBAL LANGUAGE Human interaction and communication involve both verbal and nonverbal language.  Verbal language is what is being.
1 Computational Linguistics Ling 200 Spring 2006.
Natural Language Processing Rogelio Dávila Pérez Profesor – Investigador
Chapter 6. Semantics is the study of the meaning of words, phrases and sentences. In semantic analysis, there is always an attempt to focus on what the.
1 Artificial Intelligence Introduction. 2 What is AI? Various definitions: Building intelligent entities. Getting computers to do tasks which require.
1 Lecture 1: Introduction to Artificial Intelligence.
Introduction to CL & NLP CMSC April 1, 2003.
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.
Research Topics CSC Parallel Computing & Compilers CSC 3990.
How Solvable Is Intelligence? A brief introduction to AI Dr. Richard Fox Department of Computer Science Northern Kentucky University.
1 CSI 5180: Topics in AI: Natural Language Processing, A Statistical Approach Instructor: Nathalie Japkowicz Objectives of.
NLP ? Natural Language is one of fundamental aspects of human behaviors. One of the final aim of human-computer communication. Provide easy interaction.
Artificial Intelligence: Natural Language
For Wednesday Read chapter 23 Homework: –Chapter 22, exercises 1,4, 7, and 14.
October 2005CSA3180 NLP1 CSA3180 Natural Language Processing Introduction and Course Overview.
CSA2050 Introduction to Computational Linguistics Lecture 1 Overview.
CSA2050 Introduction to Computational Linguistics Lecture 1 What is Computational Linguistics?
CSE573 Autumn /20/98 Planning/Language Administrative –PS3 due 2/23 –Midterms back today –Next topic: Natural Language Processing reading Chapter.
Artificial Intelligence: Natural Language
For Monday Read chapter 24, sections 1-3 Homework: –Chapter 23, exercise 8.
For Monday Read chapter 26 Last Homework –Chapter 23, exercise 7.
1 Branches of Linguistics. 2 Branches of linguistics Linguists are engaged in a multiplicity of studies, some of which bear little direct relationship.
CSE467/567 Computational Linguistics Carl Alphonce Computer Science & Engineering University at Buffalo.
9/13/1999JHU CS / Intro to NLP/Jan Hajic1 Textbooks you need Manning, C. D., Sch ü tze, H.: Foundations of Statistical Natural Language Processing.
Natural Language Processing Chapter 1 : Introduction.
CS460/IT632 Natural Language Processing/Language Technology for the Web Lecture 1 (03/01/06) Prof. Pushpak Bhattacharyya IIT Bombay Introduction to Natural.
For Friday Finish chapter 23 Homework –Chapter 23, exercise 15.
SYNTAX.
1 An Introduction to Computational Linguistics Mohammad Bahrani.
For Monday Read chapter 26 Homework: –Chapter 23, exercises 8 and 9.
NATURAL LANGUAGE PROCESSING
Linguistics and Language Technologies Lori Levin : Grammars and Lexicons Fall Term 2003.
INTRODUCTION TO APPLIED LINGUISTICS
King Faisal University جامعة الملك فيصل Deanship of E-Learning and Distance Education عمادة التعلم الإلكتروني والتعليم عن بعد [ ] 1 جامعة الملك فيصل عمادة.
Decision Support and Business Intelligence Systems (9 th Ed., Prentice Hall) Chapter 12: Artificial Intelligence and Expert Systems.
Introduction to Artificial Intelligence
/665 Natural Language Processing
Natural Language Processing [05 hours/week, 09 Credits] [Theory]
Natural Language Processing
Natural Language Processing
A User study on Conversational Software
Artificial Intelligence 2004 Speech & Natural Language Processing
Information Retrieval
Presentation transcript:

1 Natural Language Processing Gholamreza Ghassem-Sani

2 Main References: 1.Natural Language Understanding, James Allen, 2 nd ed., Speech and Language Processing, Daniel Jurafsky and James Martin, 2 nd ed., 2006

3 What is Natural Language Processing?

4 Goals of the field Develop computational models of human language processing...in order to write computer programs performing smart tasks with language...in order to gain a better understanding of the human language processor, and of communication

5 Interdisciplinary research... Linguistics –How do words form phrases and sentences? Psychology –How do people identify the meaning of words and structure of sentences? Philosophy –What is the meaning, and how do words and sentences acquire it? Artificial Intelligence –How is the structure of sentences identified? How can knowledge and reasoning be modeled?

6 NLP: applications Speech recognition and synthesis Machine translation Document processing – information extraction – summarization Text generation Dialog systems (typed and spoken)

7 Speech recognition Task: From representation of audio stream to sequence of words Word hypotheses lattice Applications: dictation,...

8 Machine Translation SL-TextTL-Text AnalysisGeneration Transfer Interlingua

9 Translating Speech Translate negotiation dialogs between German, English, Japanese in near-real-time Process spontaneous speech

10 Document Summarization On Monday, GreenChip Solutions made an acquisition offer to BuyOut Inc., a St. Louis-based plastic tree manufacturer that had tremendous success in equipping American households with pink plastic oak trees. (... (... ) (... )) Analysis Generation GreenChip offered to acquire the plastic tree manufacturer BuyOut.

11 Information Extraction Dedicated search for key information in the text –acquirer: GreenChip –acquiree: BuyOut –date-offer: Monday –$$-offer: UNSPEC Key attributes are predefined Systems are domain-specific

12 Text generation Reports –Data mining results –Project status –Continuous data (e.g., air pollution) Technical Documentation –User manuals –multilingual, many variants, frequent updates

13 Dialog systems Web-based, typed Spoken: telephone (web) –Travel timetable –Cinema programs E-Commerce: product search & information

14 Levels of language analysis Phonetics/phonology: what words (or sub words) are we dealing with? Morphological knowledge: how words are constructed from more basic meaning units called morphemes? Syntax: What phrases are we dealing with? Which words modify one another? Semantics: What’s the literal meaning (i.e., context-free meaning)? Pragmatics: What should you conclude from the fact that I said something? Discourse Knowledge: how the immediately preceding sentences affect the interpretation of the next sentence? World knowledge: includes the general knowledge about the world (i.e., knowledge about others’ beliefs and goals)

15 Levels of language analysis Phonetics: sounds -> words –/b/ + /o/ + /t/ = boat Morphology: morphemes -> words –friend + ly = friendly Syntax: word sequence -> sentence structure Semantics: sentence structure + word meaning -> sentence meaning Pragmatics: sentence meaning + context -> more precise meaning Discourse and world knowledge

16 Levels of language analysis (cont.) 1.Language is one of fundamental aspects of human behavior and is crucial component of our lives. 2.Green frogs have large noses. 3.Green ideas have large noses. 4.Large have green ideas nose. 5.I go store.

17 “Symbolics or statistics” Statistic used for: –speech recognition –part-of-speech tagging –parsing –machine translation, info retrieval, summarization Symbolic reasoning used for: –parsing –semantic analysis –generation –machine translation Hybrid approaches

18 Parsing Utterance GrammarLexicon Syntactic analysis Semantic analysis Pragmatic analysis

19 Syntactic Analysis By analyzing sentence structure (parsing), determine how word are related to each other –(The big furry rabbit) (jumped over (the lazy tortoise)) Obtain the parse tree to represent groupings

20 Syntactic analysis (2) Syntax can make explicit when there are several possible interpretations –(Rice flies) like sand. –Rice (flies like sand). Knowledge of ‘correct’ grammar can help finding the right interpretation –Flying planes are dangerous. –Flying planes is dangerous.

21 Semantic Analysis Different sentences with same meaning should have the same representation: –John gave the book to Mary. –The book was given to Mary by John. –give-action: agent: John object: book receiver: Mary Then we can do reasoning, answer questions

22 The Flow of Information

23 Why is NLP Hard? “At last, a computer that understands you like your mother”

24 Ambiguity “At last, a computer that understands you like your mother” 1.(*) It understands you as well as your mother understands you 2.It understands (that) you like your mother 3.It understands you as well as it understands your mother 1 and 3: Does this mean well, or poorly?

25 Ambiguity at Many Levels At the acoustic level (speech recognition): 1.“... a computer that understands you like your mother” 2.“... a computer that understands you lie cured mother”

26 Ambiguity at Many Levels At the syntactic level: Different structures lead to different interpretations.

27 More Syntactic Ambiguity

28 Ambiguity at Many Levels At the semantic (meaning) level: Two definitions of “mother” a woman who has given birth to a child a stringy slimy substance consisting of yeast cells and bacteria; is added to cider to produce vinegar (i.e., mother of vinegar) This is an instance of word sense ambiguity

29 More Word Sense Ambiguity At the semantic (meaning) level: They put money in the bank = buried in mud? I saw her duck with a telescope

30 Ambiguity at Many Levels At the discourse level: Alice says they’ve built a computer that understands you like your mother But she doesn’t know any details... doesn’t understand me at all

31 What’s hard about this story? John stopped at the donut store on his way home from work. He thought a coffee was good every few hours. But it turned out to be too expensive there.

32 What’s hard about this story? John stopped at the donut store on his way home from work. He thought a coffee was good every few hours. But it turned out to be too expensive there. To get a donut (spare tire) for his car?

33 What’s hard about this story? John stopped at the donut store on his way home from work. He thought a coffee was good every few hours. But it turned out to be too expensive there. store where donuts shop? or is run by donuts? or looks like a big donut? or made of donut? or has an emptiness at its core?

34 What’s hard about this story? I stopped smoking freshman year, but John stopped at the donut store on his way home from work. He thought a coffee was good every few hours. But it turned out to be too expensive there.

35 What’s hard about this story? John stopped at the donut store on his way home from work. He thought a coffee was good every few hours. But it turned out to be too expensive there. Describes where the store is? Or when he stopped?

36 What’s hard about this story? John stopped at the donut store on his way home from work. He thought a coffee was good every few hours. But it turned out to be too expensive there. Well, actually, he stopped there from hunger and exhaustion, not just from work.

37 What’s hard about this story? John stopped at the donut store on his way home from work. He thought a coffee was good every few hours. But it turned out to be too expensive there. At that moment, or habitually? (Similarly: Mozart composed music.)

38 What’s hard about this story? John stopped at the donut store on his way home from work. He thought a coffee was good every few hours. But it turned out to be too expensive there. That’s how often he thought it?

39 What’s hard about this story? John stopped at the donut store on his way home from work. He thought a coffee was good every few hours. But it turned out to be too expensive there. But actually, a coffee only stays good for about 10 minutes before it gets cold.

40 What’s hard about this story? John stopped at the donut store on his way home from work. He thought a coffee was good every few hours. But it turned out to be too expensive there. Similarly: In America a woman has a baby every 15 minutes. Our job is to find that woman and stop her.

41 What’s hard about this story? John stopped at the donut store on his way home from work. He thought a coffee was good every few hours. But it turned out to be too expensive there. the particular coffee that was good every few hours? the donut store? the situation?

42 What’s hard about this story? John stopped at the donut store on his way home from work. He thought a coffee was good every few hours. But it turned out to be too expensive there. too expensive for what? what are we supposed to conclude about what John did?

43 Turing test Experimenter AI system Control

44 Eliza, 1965 Patient: You are like my father in some ways. Doctor: What resemblance do you see? Patient : You are not very aggressive. Doctor : What makes you think I am not very aggressive? Patient : You don’t argue with me. Doctor : Why do you think I don’t argue with you? Patient : You are afraid of me. Doctor : Does it please you to believe I am afraid of you? Patient : My father is afraid of everybody. Doctor : What else comes to mind when you think of your father? Patient : Bullies.

45 The Chinese Room (Searle) Set of rules, in English, for transforming phrases Chinese Writing is given to the person Correct Responses She does not know Chinese