SlideShare a Scribd company logo
Natural Language Processing
Rada Mihalcea
Fall 2008
Any Light at The End of The Tunnel?
• Yahoo, Google, Microsoft  Information Retrieval
• Monster.com, HotJobs.com (Job finders)  Information Extraction +
Information Retrieval
• Systran powers Babelfish  Machine Translation
• Ask Jeeves  Question Answering
• Myspace, Facebook, Blogspot  Processing of User-Generated Content
• Tools for “business intelligence”
• All “Big Guys” have (several) strong NLP research labs:
– IBM, Microsoft, AT&T, Xerox, Sun, etc.
• Academia: research in an university environment
Why Natural Language Processing ?
• Huge amounts of data
– Internet = at least 20
billions pages
– Intranet
• Applications for
processing large
amounts of texts
require NLP expertise
• Classify text into categories
• Index and search large texts
• Automatic translation
• Speech understanding
– Understand phone conversations
• Information extraction
– Extract useful information from resumes
• Automatic summarization
– Condense 1 book into 1 page
• Question answering
• Knowledge acquisition
• Text generations / dialogues
Natural?
• Natural Language?
– Refers to the language spoken by people, e.g. English,
Japanese, Swahili, as opposed to artificial languages, like
C++, Java, etc.
• Natural Language Processing
– Applications that deal with natural language in a way or
another
• [Computational Linguistics
– Doing linguistics on computers
– More on the linguistic side than NLP, but closely related ]
Why Natural Language Processing?
• kJfmmfj mmmvvv nnnffn333
• Uj iheale eleee mnster vensi credur
• Baboi oi cestnitze
• Coovoel2^ ekk; ldsllk lkdf vnnjfj?
• Fgmflmllk mlfm kfre xnnn!
Computers Lack Knowledge!
• Computers “see” text in English the same you have
seen the previous text!
• People have no trouble understanding language
– Common sense knowledge
– Reasoning capacity
– Experience
• Computers have
– No common sense knowledge
– No reasoning capacity
Where does it fit in the CS taxonomy?
Computers
Artificial Intelligence Algorithms
Databases Networking
Robotics Search
Natural Language Processing
Information
Retrieval
Machine
Translation
Language
Analysis
Semantics Parsing
Linguistics Levels of Analysis
• Speech
• Written language
– Phonology: sounds / letters / pronunciation
– Morphology: the structure of words
– Syntax: how these sequences are structured
– Semantics: meaning of the strings
• Interaction between levels
Issues in Syntax
“the dog ate my homework” - Who did what?
1. Identify the part of speech (POS)
Dog = noun ; ate = verb ; homework = noun
English POS tagging: 95%
2. Identify collocations
mother in law, hot dog
Compositional versus non-compositional
collocates
Issues in Syntax
• Shallow parsing:
“the dog chased the bear”
“the dog” “chased the bear”
subject - predicate
Identify basic structures
NP-[the dog] VP-[chased the bear]
Issues in Syntax
• Full parsing: John loves Mary
Help figuring out (automatically) questions like: Who did what
and when?
More Issues in Syntax
• Anaphora Resolution:
“The dog entered my room. It scared me”
• Preposition Attachment
“I saw the man in the park with a telescope”
Issues in Semantics
• Understand language! How?
• “plant” = industrial plant
• “plant” = living organism
• Words are ambiguous
• Importance of semantics?
– Machine Translation: wrong translations
– Information Retrieval: wrong information
– Anaphora Resolution: wrong referents
• The sea is at the home for billions factories and
animals
• The sea is home to million of plants and
animals
• English  French [commercial MT system]
• Le mer est a la maison de billion des usines et
des animaux
• French  English
Why Semantics?
Issues in Semantics
• How to learn the meaning of words?
• From dictionaries:
plant, works, industrial plant -- (buildings for carrying on
industrial labor; "they built a large plant to manufacture
automobiles")
plant, flora, plant life -- (a living organism lacking the power of
locomotion)
They are producing about 1,000 automobiles in the new plant
The sea flora consists in 1,000 different plant species
The plant was close to the farm of animals.
Issues in Semantics
• Learn from annotated examples:
– Assume 100 examples containing “plant”
previously tagged by a human
– Train a learning algorithm
– How to choose the learning algorithm?
– How to obtain the 100 tagged examples?
Issues in Learning Semantics
• Learning?
– Assume a (large) amount of annotated data = training
– Assume a new text not annotated = test
• Learn from previous experience (training) to
classify new data (test)
• Decision trees, memory based learning, neural
networks
– Machine Learning
Issues in Information Extraction
• “There was a group of about 8-9 people close to
the entrance on Highway 75”
• Who? “8-9 people”
• Where? “highway 75”
• Extract information
• Detect new patterns:
– Detect hacking / hidden information / etc.
• Gov./mil. puts lots of money put into IE
research
Issues in Information Retrieval
• General model:
– A huge collection of texts
– A query
• Task: find documents that are relevant to the given
query
• How? Create an index, like the index in a book
• More …
– Vector-space models
– Boolean models
• Examples: Google, Yahoo, Altavista, etc.
Issues in Information Retrieval
• Retrieve specific information
• Question Answering
• “What is the height of mount Everest?”
• 11,000 feet
Issues in Information Retrieval
• Find information across languages!
• Cross Language Information Retrieval
• “What is the minimum age requirement for car
rental in Italy?”
• Search also Italian texts for “eta minima per
noleggio macchine”
• Integrate large number of languages
• Integrate into performant IR engines
Issues in Machine Translations
• Text to Text Machine Translations
• Speech to Speech Machine Translations
• Most of the work has addressed pairs of widely
spread languages like English-French, English-
Chinese
Issues in Machine Translations
• How to translate text?
– Learn from previously translated data
•  Need parallel corpora
• French-English, Chinese-English have the
Hansards
• Reasonable translations
• Chinese-Hindi – no such tools available today!
Even More
• Discourse
• Summarization
• Subjectivity and sentiment analysis
• Text generation, dialog [pass the Turing test for
some million dollars] – Loebner prize
• Knowledge acquisition [how to get that
common sense knowledge]
• Speech processing
What will we study this semester?
• Intro to Perl
– Great great for text processing
– Fast: one person can do the work of ten others
– Easy to pick up
• Some linguistic basics
– Structure of English
– Parts of speech, phrases, parsing
• Morphology
• N-grams
– Also multi-word expressions
• Part of speech tagging
• Syntactic parsing
• Semantics
– Word sense disambiguation
What will we study this semester?
• Information Retrieval
• Question answering
• Text summarization
• Sentiment analysis
• Machine Translation
• Depending on time, we may touch on
– Speech recognition
– Dialogue
– Text generation
– Other topics of your interest

More Related Content

PPT
Intro 2 document
PPT
PPT
PPT
cs626-449-lect1-intro-2009-7-23-jshdih.ppt
PPT
Natural language procssing
PPTX
Artificial Intelligence Notes Unit 4
PPT
NLP Introduction.ppt machine learning presentation
PDF
Natural Language Processing with Python
Intro 2 document
cs626-449-lect1-intro-2009-7-23-jshdih.ppt
Natural language procssing
Artificial Intelligence Notes Unit 4
NLP Introduction.ppt machine learning presentation
Natural Language Processing with Python

Similar to Natural_Language_Processing_1.ppt (20)

PPTX
NLP_KASHK: Introduction
PDF
Adnan: Introduction to Natural Language Processing
PPTX
operating system notes for II year IV semester students
PDF
Text Analytics for Security
PPTX
Natural Language Processing (NLP)
PPT
NLP introduced and in 47 slides Lecture 1.ppt
PDF
Natural Language Processing from Object Automation
PPTX
AI UNIT-3 FINAL (1).pptx
PPTX
Artificial Intelligence_NLP
PDF
Computational Linguistics in the Netherlands 2000 Jorn Veenstra
DOC
PPTX
6CS4_AI_Unit-5 @zammers.pptx(for artificial intelligence)
PDF
Computational Linguistics in the Netherlands 2000 Jorn Veenstra
PPT
Lec 15,16,17 NLP.machine translation
PPTX
introduction to natural language processing lecture.pptx
PDF
Natural language processing module 1 chapter 1
PPTX
The Role of Natural Language Processing in Information Retrieval
PPTX
nlp-01.pptxvvvffffffvvvvvfeddeeddffffffffff
PDF
The Mystery of Natural Language Processing
PDF
Natural language processing (nlp)
NLP_KASHK: Introduction
Adnan: Introduction to Natural Language Processing
operating system notes for II year IV semester students
Text Analytics for Security
Natural Language Processing (NLP)
NLP introduced and in 47 slides Lecture 1.ppt
Natural Language Processing from Object Automation
AI UNIT-3 FINAL (1).pptx
Artificial Intelligence_NLP
Computational Linguistics in the Netherlands 2000 Jorn Veenstra
6CS4_AI_Unit-5 @zammers.pptx(for artificial intelligence)
Computational Linguistics in the Netherlands 2000 Jorn Veenstra
Lec 15,16,17 NLP.machine translation
introduction to natural language processing lecture.pptx
Natural language processing module 1 chapter 1
The Role of Natural Language Processing in Information Retrieval
nlp-01.pptxvvvffffffvvvvvfeddeeddffffffffff
The Mystery of Natural Language Processing
Natural language processing (nlp)
Ad

Recently uploaded (20)

PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
additive manufacturing of ss316l using mig welding
PPT
Project quality management in manufacturing
PDF
Well-logging-methods_new................
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Digital Logic Computer Design lecture notes
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Arduino robotics embedded978-1-4302-3184-4.pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
additive manufacturing of ss316l using mig welding
Project quality management in manufacturing
Well-logging-methods_new................
Internet of Things (IOT) - A guide to understanding
Digital Logic Computer Design lecture notes
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Foundation to blockchain - A guide to Blockchain Tech
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
OOP with Java - Java Introduction (Basics)
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Ad

Natural_Language_Processing_1.ppt

  • 1. Natural Language Processing Rada Mihalcea Fall 2008
  • 2. Any Light at The End of The Tunnel? • Yahoo, Google, Microsoft  Information Retrieval • Monster.com, HotJobs.com (Job finders)  Information Extraction + Information Retrieval • Systran powers Babelfish  Machine Translation • Ask Jeeves  Question Answering • Myspace, Facebook, Blogspot  Processing of User-Generated Content • Tools for “business intelligence” • All “Big Guys” have (several) strong NLP research labs: – IBM, Microsoft, AT&T, Xerox, Sun, etc. • Academia: research in an university environment
  • 3. Why Natural Language Processing ? • Huge amounts of data – Internet = at least 20 billions pages – Intranet • Applications for processing large amounts of texts require NLP expertise • Classify text into categories • Index and search large texts • Automatic translation • Speech understanding – Understand phone conversations • Information extraction – Extract useful information from resumes • Automatic summarization – Condense 1 book into 1 page • Question answering • Knowledge acquisition • Text generations / dialogues
  • 4. Natural? • Natural Language? – Refers to the language spoken by people, e.g. English, Japanese, Swahili, as opposed to artificial languages, like C++, Java, etc. • Natural Language Processing – Applications that deal with natural language in a way or another • [Computational Linguistics – Doing linguistics on computers – More on the linguistic side than NLP, but closely related ]
  • 5. Why Natural Language Processing? • kJfmmfj mmmvvv nnnffn333 • Uj iheale eleee mnster vensi credur • Baboi oi cestnitze • Coovoel2^ ekk; ldsllk lkdf vnnjfj? • Fgmflmllk mlfm kfre xnnn!
  • 6. Computers Lack Knowledge! • Computers “see” text in English the same you have seen the previous text! • People have no trouble understanding language – Common sense knowledge – Reasoning capacity – Experience • Computers have – No common sense knowledge – No reasoning capacity
  • 7. Where does it fit in the CS taxonomy? Computers Artificial Intelligence Algorithms Databases Networking Robotics Search Natural Language Processing Information Retrieval Machine Translation Language Analysis Semantics Parsing
  • 8. Linguistics Levels of Analysis • Speech • Written language – Phonology: sounds / letters / pronunciation – Morphology: the structure of words – Syntax: how these sequences are structured – Semantics: meaning of the strings • Interaction between levels
  • 9. Issues in Syntax “the dog ate my homework” - Who did what? 1. Identify the part of speech (POS) Dog = noun ; ate = verb ; homework = noun English POS tagging: 95% 2. Identify collocations mother in law, hot dog Compositional versus non-compositional collocates
  • 10. Issues in Syntax • Shallow parsing: “the dog chased the bear” “the dog” “chased the bear” subject - predicate Identify basic structures NP-[the dog] VP-[chased the bear]
  • 11. Issues in Syntax • Full parsing: John loves Mary Help figuring out (automatically) questions like: Who did what and when?
  • 12. More Issues in Syntax • Anaphora Resolution: “The dog entered my room. It scared me” • Preposition Attachment “I saw the man in the park with a telescope”
  • 13. Issues in Semantics • Understand language! How? • “plant” = industrial plant • “plant” = living organism • Words are ambiguous • Importance of semantics? – Machine Translation: wrong translations – Information Retrieval: wrong information – Anaphora Resolution: wrong referents
  • 14. • The sea is at the home for billions factories and animals • The sea is home to million of plants and animals • English  French [commercial MT system] • Le mer est a la maison de billion des usines et des animaux • French  English Why Semantics?
  • 15. Issues in Semantics • How to learn the meaning of words? • From dictionaries: plant, works, industrial plant -- (buildings for carrying on industrial labor; "they built a large plant to manufacture automobiles") plant, flora, plant life -- (a living organism lacking the power of locomotion) They are producing about 1,000 automobiles in the new plant The sea flora consists in 1,000 different plant species The plant was close to the farm of animals.
  • 16. Issues in Semantics • Learn from annotated examples: – Assume 100 examples containing “plant” previously tagged by a human – Train a learning algorithm – How to choose the learning algorithm? – How to obtain the 100 tagged examples?
  • 17. Issues in Learning Semantics • Learning? – Assume a (large) amount of annotated data = training – Assume a new text not annotated = test • Learn from previous experience (training) to classify new data (test) • Decision trees, memory based learning, neural networks – Machine Learning
  • 18. Issues in Information Extraction • “There was a group of about 8-9 people close to the entrance on Highway 75” • Who? “8-9 people” • Where? “highway 75” • Extract information • Detect new patterns: – Detect hacking / hidden information / etc. • Gov./mil. puts lots of money put into IE research
  • 19. Issues in Information Retrieval • General model: – A huge collection of texts – A query • Task: find documents that are relevant to the given query • How? Create an index, like the index in a book • More … – Vector-space models – Boolean models • Examples: Google, Yahoo, Altavista, etc.
  • 20. Issues in Information Retrieval • Retrieve specific information • Question Answering • “What is the height of mount Everest?” • 11,000 feet
  • 21. Issues in Information Retrieval • Find information across languages! • Cross Language Information Retrieval • “What is the minimum age requirement for car rental in Italy?” • Search also Italian texts for “eta minima per noleggio macchine” • Integrate large number of languages • Integrate into performant IR engines
  • 22. Issues in Machine Translations • Text to Text Machine Translations • Speech to Speech Machine Translations • Most of the work has addressed pairs of widely spread languages like English-French, English- Chinese
  • 23. Issues in Machine Translations • How to translate text? – Learn from previously translated data •  Need parallel corpora • French-English, Chinese-English have the Hansards • Reasonable translations • Chinese-Hindi – no such tools available today!
  • 24. Even More • Discourse • Summarization • Subjectivity and sentiment analysis • Text generation, dialog [pass the Turing test for some million dollars] – Loebner prize • Knowledge acquisition [how to get that common sense knowledge] • Speech processing
  • 25. What will we study this semester? • Intro to Perl – Great great for text processing – Fast: one person can do the work of ten others – Easy to pick up • Some linguistic basics – Structure of English – Parts of speech, phrases, parsing • Morphology • N-grams – Also multi-word expressions • Part of speech tagging • Syntactic parsing • Semantics – Word sense disambiguation
  • 26. What will we study this semester? • Information Retrieval • Question answering • Text summarization • Sentiment analysis • Machine Translation • Depending on time, we may touch on – Speech recognition – Dialogue – Text generation – Other topics of your interest