Docsity

CSE 473: Artificial Intelligence, Slides of Artificial Intelligence

Toggle sidebar
bg1
CSE 473: Artificial Intelligence
Advanced Applic's: Natural Language Processing
Steve Tanimoto --- University of Washington
[Some of these slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b

Partial preview of the text

Download CSE 473: Artificial Intelligence and more Slides Artificial Intelligence in PDF only on Docsity!

CSE 473: Artificial Intelligence

Advanced Applic's: Natural Language Processing

Steve Tanimoto --- University of Washington [Some of these slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley.

What is NLP?

 Fundamental goal: analyze and process human language, broadly, robustly, accurately…  End systems that we want to build:  Ambitious: speech recognition, machine translation, information extraction, dialog interfaces, question answering…  Modest: spelling correction, text categorization…

Parsing as Search

Grammar: PCFGs

 Natural language grammars are very ambiguous!  PCFGs are a formal probabilistic model of trees  Each “rule” has a conditional probability (like an HMM)  Tree’s probability is the product of all rules used  Parsing: Given a sentence, find the best tree – search! ROOT  S 375/ S  NP VP. 320/ NP  PRP 127/ VP  VBD ADJP 32/ …..

Dialog Systems

ELIZA

 A “psychotherapist” agent (Weizenbaum, ~1964)  Led to a long line of chatterbots  How does it work:  Trivial NLP: string match and substitution  Trivial knowledge: tiny script / response database  Example: matching “I remember __” results in “Do you often think of __”?  Can fool some people some of the time? [Demo: http://nlp-addiction.com/eliza]

What’s in Watson?

 A question-answering system (IBM, 2011)  Designed for the game of Jeopardy  How does it work:  Sophisticated NLP: deep analysis of questions, noisy matching of questions to potential answers  Lots of data: onboard storage contains a huge collection of documents (e.g. Wikipedia, etc.), exploits redundancy  Lots of computation: 90+ servers  Can beat all of the people all of the time?

Machine Translation

The Problem with Dictionary Lookups

13

MT: 60 Years in 60 Seconds

Learning to Translate

An HMM Translation Model

17

Example: Syntactic MT Output

21 [ISI MT system output]

Document Analysis with LSA: Outline

  • Motivation
  • Bag-of-words representation
  • Stopword elimination, stemming, reference vocabulary
  • Vector-space representation
  • Document comparison with the cosine similarity measure
  • Latent Semantic Analysis