74.406 Natural Language Processing Christel Kemke Department of Computer Science University of Manitoba 74.406 Natural Language Processing, 1st term 2004/5.

Slides:



Advertisements
Similar presentations
Computational language: week 10 Lexical Knowledge Representation concluded Syntax-based computational language Sentence structure: syntax Context free.
Advertisements

 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Feature Structures and Unification.
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.
Natural Language Processing - Parsing 1 - Language, Syntax, Parsing Problems in Parsing Ambiguity, Attachment / Binding Bottom vs. Top Down Parsing.
Statistical NLP: Lecture 3
Natural Language Processing - Speech Processing -
Natural Language Processing - Feature Structures - Feature Structures and Unification.
1 Words and the Lexicon September 10th 2009 Lecture #3.
Artificial Intelligence 2004 Natural Language Processing - Syntax and Parsing - Language, Syntax, Parsing Problems in Parsing Ambiguity, Attachment.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Feature Structures and Unification.
Artificial Intelligence Speech and Natural Language Processing.
NLP and Speech Course Review. Morphological Analyzer Lexicon Part-of-Speech (POS) Tagging Grammar Rules Parser thethe – determiner Det NP → Det.
Speech and Natural Language Processing Christel Kemke Department of Computer Science University of Manitobe Presentation for Human-Computer Interaction.
 Christel Kemke /08 COMP 4060 Natural Language Processing PARSING.
NLP and Speech 2004 Feature Structures Feature Structures and Unification.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Introduction And Overview.
Amirkabir University of Technology Computer Engineering Faculty AILAB Efficient Parsing Ahmad Abdollahzadeh Barfouroush Aban 1381 Natural Language Processing.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Feature Structures and Unification.
Introduction to Syntax, with Part-of-Speech Tagging Owen Rambow September 17 & 19.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 2.
COMP 4060 Natural Language Processing Speech Processing.
Artificial Intelligence 2004 Natural Language Processing - Syntax and Parsing - Language Syntax Parsing.
Context-Free Grammar CSCI-GA.2590 – Lecture 3 Ralph Grishman NYU.
Models of Generative Grammar Smriti Singh. Generative Grammar  A Generative Grammar is a set of formal rules that can generate an infinite set of sentences.
1 Basic Parsing with Context Free Grammars Chapter 13 September/October 2012 Lecture 6.
March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing INTRODUCTION Muhammed Al-Mulhem March 1, 2009.
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.
Artificial Intelligence 2004 Speech & Natural Language Processing Natural Language Processing written text as input sentences (well-formed) Speech.
CCSB354 ARTIFICIAL INTELLIGENCE (AI)
Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
For Friday Finish chapter 23 Homework: –Chapter 22, exercise 9.
CSI 3120, Grammars, page 1 Language description methods Major topics in this part of the course: –Syntax and semantics –Grammars –Axiomatic semantics (next.
Natural Language Processing Lecture 6 : Revision.
Introduction to CL & NLP CMSC April 1, 2003.
Artificial Intelligence 2004 Speech & Natural Language Processing Natural Language Processing written text as input sentences (well-formed) Speech.
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.
인공지능 연구실 황명진 FSNLP Introduction. 2 The beginning Linguistic science 의 4 부분 –Cognitive side of how human acquire, produce, and understand.
Artificial Intelligence: Natural Language
For Wednesday Read chapter 23 Homework: –Chapter 22, exercises 1,4, 7, and 14.
Linguistic Essentials
CSA2050 Introduction to Computational Linguistics Lecture 1 Overview.
Parsing with Context-Free Grammars for ASR Julia Hirschberg CS 4706 Slides with contributions from Owen Rambow, Kathy McKeown, Dan Jurafsky and James Martin.
Artificial Intelligence 2004 Speech & Natural Language Processing Speech Recognition acoustic signal as input conversion into written words Natural.
Artificial Intelligence: Natural Language
CSA2050 Introduction to Computational Linguistics Parsing I.
Natural Language - General
PARSING 2 David Kauchak CS159 – Spring 2011 some slides adapted from Ray Mooney.
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 /23/98 Natural Language Processing Administrative –PS3 due today –PS4 out Wednesday, due Friday 3/13 (last day of class) special.
LING 001 Introduction to Linguistics Spring 2010 Syntactic parsing Part-Of-Speech tagging Apr. 5 Computational linguistics.
Computerlinguistik II / Sprachtechnologie Vorlesung im SS 2010 (M-GSW-10) Prof. Dr. Udo Hahn Lehrstuhl für Computerlinguistik Institut für Germanistische.
CS 4705 Lecture 7 Parsing with Context-Free Grammars.
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.
English Syntax Read J & M Chapter 9.. Two Kinds of Issues Linguistic – what are the facts about language? The rules of syntax (grammar) Algorithmic –
Levels of Linguistic Analysis
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 3.
NATURAL LANGUAGE PROCESSING
10/31/00 1 Introduction to Cognitive Science Linguistics Component Topic: Formal Grammars: Generating and Parsing Lecturer: Dr Bodomo.
Statistical NLP: Lecture 3
Basic Parsing with Context Free Grammars Chapter 13
Natural Language - General
Levels of Linguistic Analysis
Linguistic Essentials
Artificial Intelligence 2004 Speech & Natural Language Processing
Faculty of Computer Science and Information System
Presentation transcript:

Natural Language Processing Christel Kemke Department of Computer Science University of Manitoba Natural Language Processing, 1st term 2004/5

Evolution of Human Language communication for "work" social interaction basis of cognition and thinking (Whorff & Saphir)

Communication "Communication is the intentional exchange of information brought about by the production and perception of signs drawn from a shared system of conventional signs." [Russell & Norvig, p.651]

Natural Language - General Natural Language is characterized by  a common or shared set of signs alphabeth; lexicon  a systematic procedure to produce combinations of signs syntax  a shared meaning of signs and combinations of signs (constructive) semantics

Natural Language Processing Overview Speech Recognition Natural Language Processing Syntax Semantics Pragmatics Spoken Language

Natural Language and Speech  Speech Recognition  acoustic signal as input  conversion into phonemes and written words  Natural Language Processing  written text as input; sentences (or 'utterances')  syntactic analysis: parsing; grammar  semantic analysis: "meaning", semantic representation  pragmatics: dialogue; discourse; metaphors  Spoken Language Processing  transcribed utterances  Phenomena of spontaneous speech

Words

Morphology A morphological analyzer determines (at least)  the stem + ending of a word, and usually delivers related information, like  the word class,  the number and  the person of the word. The morphology can be part of the lexicon or implemented as a single component, for example as a rule-basedsystem. eats  eat + s verb, singular, 3rd pers dog  dog noun, singular

Lexicon The Lexicon contains information on words, as  inflected forms (e.g. goes, eats) or  word-stems (e.g. go, eat). The Lexicon usually assigns a syntactic category,  the word class or Part-of-Speech category Sometimes also  further syntactic information (see Morphology);  semantic information (e.g. semantic classifications like ‘agent’);  syntactic-semantic information, e.g. on verb complements like ‘give’ requires a direct object.

Lexicon Example contents: eats  verb; singular, 3 rd person; can have direct object dog  dog, noun, singular; animal semantic annotation

POS (Part-of-Speech) Tagging POS Tagging determines word class or ‘part-of- speech’ category (basic syntactic categories) of single words or word-stems. Thedet (determiner) dog noun eat, eatsverb (3rd singular) the det bone noun

Morphological Analyzer Lexicon Part-of-Speech (POS) Tagging Grammar Rules Parser NLP - Syntactic Analysis eat + s eat – verb Verb VP → Verb Noun VP recognized 3rd sing VP Verb Noun parse tree

Syntax

Language and Grammar Natural Language described as Formal Language L using a Formal Grammar G: start-symbol S ≡ sentence non-terminals NT ≡ syntactic constituents terminals T ≡ lexical entries/ words production rules P ≡ grammar rules Generate sentences or recognize sentences (Parsing) of the language L through the application of grammar rules from G. Overgeneration / undergeneration: accept/generate sentences not in L / not all sentences from L.

Grammar Terminals can be words, part-of-speech categories, or more complex lexical items (including additional syntactic/semantic information related to the word). –dog –noun –dog: noun, singular; animal Non-Terminals represent (higher level) ‘syntactic categories’. –noun –NP (noun phrase) –S (sentence)

Grammar Most often we deal with Context-free Grammars, with a distinguished Start-symbol S (sentence). det  the noun  dog | bone verb  eat | eats NP  det noun(NP  noun phrase) VP  verb(VP  verb phrase) VP  verb NP S  NP VP(S  sentence) Here, POS Tagging is included in the grammar.

Parsing (here: LR, bottom-up) Determine the syntactic structure of the sentence: “the dog eats the bone” the  detPOS Tagging dog  noun det noun  NPRule application eats  verb the  det bone  noun det noun  NP verb NP  VP NP VP  S

Syntax Analysis / Parsing Syntactic Structure often represented as Parse Tree. Connect symbols according to applied grammar rules (like Rewrite Systems).

Parse Tree det noun NP verb NP VP NP VP S

Lexical Ambiguity Several word senses or word categories e.g. chase – noun or verb e.g. plant - ????

Syntactic Ambiguity Several parse trees: 1)“The dog eats the bone in the park.” 2)“The dog eats the bone in the package.” Who/what is in the park and who/what is in the package? Syntactically speaking: How do I bind the Prepositional Phrase "in the..." ?

Semantics

Semantic Representation Represent the meaning of a sentence. Generate, e.g. a logic-based representation or a frame-based representation Fillmore’s case frames based on the syntactic structure, lexical entries, and particularly the head-verb, which determines how to arrange parts of the sentence and relate them to each other in the semantic representation.

Semantic Representation Verb-centered representation: Verb (action, head) is regarded as center of verbal expression and determines the case frame with possible case roles; other parts of the sentence are described in relation to the action as fillers of case slots. (cf. also Schank’s CD Theory) Typing of case roles is possible (e.g. 'agent' refers to a specific sort or concept, like “humans”)

General Frame for eat Agent: animate Action: eat Patiens: food Manner: {e.g. fast} Location: {e.g. in the yard} Time: {e.g. at noon}

Frame with fillers for sample sentence Agent: the dog Action: eat Patiens: the bone / the bone in the package Location: in the park

General Frame for driveFrame with fillers Agent: animateAgent: she Action: driveAction: drives Patiens: vehiclePatiens: the convertible Manner:{the way it is done}Manner: fast Location: Location-specLocation: [in the] Rocky Mountains Source:Location-specSource:[from] home Destination: Location-specDestination: [to the] ASIC conference Time: Time-specTime: [in the] summer holiday

Pragmatics

Pragmatics includes context-related aspects of NL expressions (utterances). These are in particular anaphoric references, elliptic expressions, deictic expressions, … anaphoric references – refer to items mentioned before deictic expressions – simulate pointing gestures elliptic expressions – incomplete expression; relate to item mentioned before

Pragmatics “I put the box on the top shelve.” “I know that. But I can’t find it there.” deictic expression anaphoric reference

Pragmatics “I put the box on the top shelve.” “I know that. But I can’t find it there.” anaphoric reference

Pragmatics “I put the box on the top shelve.” “I know that. But I can’t find it there.” deictic expression

Pragmatics “I put the box on the top shelve.” “I know that. But I can’t find it there.” “The candy-box?” elliptic expression deictic expression anaphoric reference

Pragmatics “I know that. But I can’t find it there.” “The candy-box?” elliptic expression

Intentions One philosophical assumption is that natural language is used to achieve something: “Do things with words.” The meaning of an utterance is essentially determined by the intention of the speaker.

Intentionality - Examples What was said:What was meant: “There is a terrible "Can you please draft here.”close the window." “How does it look "I am really mad; here?”clean up your room." "Will this ever end?""I would prefer to be with my friends than to sit in class now."

Metaphors The meaning of a sentence or expression is not directly inferable from the sentence structure and the word meanings. Metaphors transfer concepts and relations from one area of discourse into another area, for example, seeing time as a line (in space) or seeing friendship / life as a journey.

Metaphors - Examples “This car eats a lot of gas.” “She devoured the book.” “He was tied up with his clients.” “Marriage is like a journey.” “Their marriage was a one-way road into hell.” (see also George Lakoff, e.g. Women, Fire and Dangerous Things)

Dialogue and Discourse

Discourse / Dialogue Structure Grammar for various sentence types (speech acts): dialogue, discourse, story grammar Distinguish questions, commands, and statements:  Where is the remote-control?  Bring the remote-control!  The remote-control is on the brown table. Dialogue Grammars describe possible sequences of Speech Acts in communication, e.g. that a question is followed by an answer/statement. Similar for Discourse (like continuous texts).

Speech

Speech Processing Systems Types and Characteristics  Speech Recognition vs. Speaker Recognition (Voice Recognition; Speaker Identification )  speaker-dependent vs. speaker-independent  training?  unlimited vs. large vs. small vocabulary  single word vs. continuous speech

Speech Recognition Phases acoustic signal as input signal analysis - spectrogram feature extraction phoneme recognition word recognition conversion into written words

Speech Recognizer Architecture

Video of glottis and speech signal in lingWAVES (from

Spoken Language

 Output of Speech Recognition System as input "text".  Can be associated with probabilities for different word sequences.  Contains ungrammatical structures, so- called "disfluencies", e.g. repetitions and corrections.

Spoken Language - Examples 1. no [s-] straight southwest 2. right to [my] my left 3. [that is] that is correct Robin J. Lickley. HCRC Disfluency Coding Manual.

Spoken Language - Disfluency Reparandum and Repair Reparandum Repair [come to]... walk right to [the]... the right-hand side of the page

Spoken Language - Example 1.we're going to [g-- ]... turn straight back around for testing. 2.[come to]... walk right to the... right-hand side of the page. 3.right [up... past]... up on the left of the... white mountain walk... right up past. 4.[i'm still]... i've still gone halfway back round the lake again.

Spoken Language - Example 1.[I’d] [d if] I need to go 2.[it’s basi--] see if you go over the old mill 3.[you are going] make a gradual slope … to your right 4.[I’ve got one] I don’t realize why it is there