Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence.

Similar presentations


Presentation on theme: "Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence."— Presentation transcript:

1 Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas k.albasheir@sau.edu.sa 363CS – Artificial Intelligence

2 2 The sub-domain of artificial intelligence concerned with the task of developing programs possessing some capability of ‘understanding’ a natural language in order to achieve some specific goal NLP Computational Linguistics (CL) Computational aspects of the human language faculty More theoretical

3 Why Study NLP? Human language interesting & challenging NLP offers insights into language Language is the medium of the web Interdisciplinary: Ling, CS, psych, math Help in communication With computers (ASR, TTS) With other humans (MT) Ambitious yet practical

4 Goals of NLP Scientific Goal Identify the computational machinery needed for an agent to exhibit various forms of linguistic behavior Engineering Goal Design, implement, and test systems that process natural languages for practical applications

5 Applications speech processing: get flight information or book a hotel over the phone information extraction: discover names of people and events they participate in, from a document machine translation: translate a document from one human language into another question answering: find answers to natural language questions in a text collection or database summarization: generate a short biography of Noam Chomsky from one or more news articles

6 General Themes Ambiguity of Language Language as a formal system Rule-based vs. Statistical Methods The need for efficiency

7 Ambiguity of language Phonetic [raIt] = write, right, rite Lexical can = noun, verb, modal Structural I saw the man with the telescope Semantic dish = physical plate, menu item → All of these make NLP difficult

8 8 Applications Machine Translation Database Interface Report Abstraction Story Understanding

9 9 Morphological Analysis Individual words are analyzed into their components Morphological Analysis Individual words are analyzed into their components Syntactic Analysis Linear sequences of words are transformed into structures that show how the words relate to each other Syntactic Analysis Linear sequences of words are transformed into structures that show how the words relate to each other Discourse Analysis Resolving references Between sentences Discourse Analysis Resolving references Between sentences Pragmatic Analysis To reinterpret what was said to what was actually meant Pragmatic Analysis To reinterpret what was said to what was actually meant Semantic Analysis A transformation is made from the input text to an internal representation that reflects the meaning Semantic Analysis A transformation is made from the input text to an internal representation that reflects the meaning

10 10 The Steps in NLP **we can go up, down and up and down and combine steps too!! **every step is equally complex

11 11 The steps in NLP (Cont.) Morphology: Concerns the way words are built up from smaller meaning bearing units. Syntax: concerns how words are put together to form correct sentences and what structural role each word has Semantics: concerns what words mean and how these meanings combine in sentences to form sentence meanings

12 12 The steps in NLP (Cont.) Pragmatics: concerns how sentences are used in different situations and how use affects the interpretation of the sentence Discourse: concerns how the immediately preceding sentences affect the interpretation of the next sentence

13 13 Parsing (Syntactic Analysis) Assigning a syntactic and logical form to an input sentence uses knowledge about word and word meanings (lexicon) uses a set of rules defining legal structures (grammar) Ahmad ate the apple. (S (NP (NAME Ahmad)) (VP (V ate) (NP (ART the) (N apple))))

14 14 Word Sense Resolution Many words have many meanings or senses We need to resolve which of the senses of an ambiguous word is invoked in a particular use of the word I made her duck. (made her a bird for lunch or made her move her head quickly downwards?)

15 15 Morphologic al Analysis Syntactic Analysis Semantic Analysis Discourse Analysis Pragmatic Analysis Internal representatio n lexicon user Surface form Perform action stems parse tree Resolve references

16 16 Fruit flies like to feast on a banana; in contrast, the species of flies known as “time flies” like an arrow. Time passes along in the same manner as an arrow gliding through space. I order you to take timing measurements on flies, in the same manner as you would time an arrow. (other different meanings) more than one meaning for the same sentence Time flies like an arrow

17 17 Parts of the Spoken Dialogue System Signal Processing: Convert the audio wave into a sequence of feature vectors. Speech Recognition: Decode the sequence of feature vectors into a sequence of words. Semantic Interpretation: Determine the meaning of the words. Discourse Interpretation: Understand what the user intends by interpreting utterances in context. Dialogue Management: Determine system goals in response to user utterances based on user intention. Speech Synthesis: Generate synthetic speech as a response.

18 18 Levels of Sophistication in a Dialogue System Touch-tone replacement: System Prompt: "For checking information, press or say one." Caller Response: "One." Directed dialogue: System Prompt: "Would you like checking account information or rate information?" Caller Response: "Checking", or "checking account," or "rates." Natural language: System Prompt: "What transaction would you like to perform?" Caller Response: "Transfer Rs. 500 from checking to savings. “


Download ppt "Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence."

Similar presentations


Ads by Google