SlideShare una empresa de Scribd logo
1 de 36
Descargar para leer sin conexión
Department of CSE, NIT Trichy




                           An Introduction to
                   Natural Language Processing
                                    and
                        Machine Learning
                             Karthik Sankar
                           Department of CSE
                               NIT Trichy




November 9, 2009            Artificial Intelligence                        1
Department of CSE, NIT Trichy




                   Natural Language Processing




November 9, 2009            Artificial Intelligence                        2
Artificial Intelligence




A lot of human communication is by means of natural language

So computers could be a ton more useful if they could read our email, do our
library research, chat to us, do all of these things involve dealing with natural
language

They're pretty good at dealing with machine languages that are made for them,
but human languages, not so.

“Look. The computer just can't deal with the kind of stuff that humans produce,
and how they naturally interact”

We’re exploiting human cleverness rather than working out how to have
computer cleverness.




 November 9, 2009             Department of CSE, NIT Trichy                   3
Artificial Intelligence



Definition

NLP is a field of computer science and linguistics concerned with the interactions
between computers and human (natural) languages


Categories

   Phonology       -      study of speech sounds
   Morphology      -      study of meaningful components of words
   Syntax          -      study of structural relationships between words
   Semantics       -      study of meaning




 November 9, 2009             Department of CSE, NIT Trichy                     4
Artificial Intelligence



Phonology
Modeling the pronunciation of a word as a string of symbols – PHONES

Articulatory Phonetics: How phones are produced as the various organs in the
mouth, throat and nose modify the airflow from the lungs.

Can
Chair
Coach

Syllables




 November 9, 2009            Department of CSE, NIT Trichy                     5
Artificial Intelligence



Morphology
Identification, analysis and description of the structure of words.

Inflections
          Number                        dog/dogs : goose/geese
          Tense                         hunt – hunted
          Case                          his - hers
          Gender
          Person

Word Formation
        mother in law
        hot dog

Finite State Machines
Finite State Transducers


 November 9, 2009              Department of CSE, NIT Trichy          6
Artificial Intelligence



Syntax
Part of Speech Tagging
         Noun
         Verb
         Adjective …

I can write – aux. verb   OR   verb   OR   noun

Context Free Grammars




 November 9, 2009                 Department of CSE, NIT Trichy   7
Artificial Intelligence



Semantics
Understanding and representing the meaning


                                            having




                      Who has                                   What does he
                                                                   have


 First Order Predicate Calculus

 Has(Ram, book)



 November 9, 2009                 Department of CSE, NIT Trichy                8
Artificial Intelligence



Ambiguity
Adjective: the adjectives are associated with which of the two nouns ?
“pretty little girls' school”

Pronoun: which noun does ‘they’ relate to ?
We gave the monkeys the bananas because they were hungry.
We gave the monkeys the bananas because they were over-ripe.

Emphasis: notice the change in meaning due to the change in stress
I never said she stole my money
I never said she stole my money
I never said she stole my money
I never said she stole my money
I never said she stole my money
I never said she stole my money
I never said she stole my money




 November 9, 2009               Department of CSE, NIT Trichy            9
Artificial Intelligence



Ambiguity - contd

Fed raises interest rates half a percent in effort to control inflation

She rates highly
Our water rates are high


Japanese movies interest me
The interest rate is 8 percent


Fed raises
The raises we received was small




 November 9, 2009                Department of CSE, NIT Trichy        10
Artificial Intelligence



Resolving Ambiguity

 Part of Speech Tagging

 Word Sense Disambiguation

 Probabilistic Parsing

 Speech Act Interpretation




 November 9, 2009             Department of CSE, NIT Trichy   11
Artificial Intelligence


Perceptions
Perception provides agents with information about the world they inhabit.

Perception is initiated by sensors.

A sensor is anything that can record some aspect of the environment and pass it
as input to an agent program.

The sensor could be as simple as a one-bit sensor that detects whether a switch
is on or off or as complex as the retina of the human eye, which contains more
than a hundred million photosensitive elements

                                  Image processing
                                  Computer Vision
                                  Speech recognition
                                  Facial recognition
                                  Object recognition

 November 9, 2009                Department of CSE, NIT Trichy              12
Artificial Intelligence


                                    Applications
 Information retrieval & Web Search
         Information retrieval (IR) is the science of searching for documents,
         for information within documents, and for metadata about documents, as well
         as that of searching databases and the World Wide Web.
 Information Extraction
         Information extraction (IE) is a type of information retrieval whose goal is to
         automatically extract structured information, i.e. categorized and contextually
         and semantically well-defined data from a certain domain, from
         unstructured machine-readable documents
 Question Answering
         Type in keywords to Asking Questions in Natural Language.
         Response from documents to extracted or generated answer
 Text Summarization
         Process of distilling most important information from a source to produce an
         abridged version
 Machine Translation
         use of computer software to translate text or speech from one natural
         language to another.
 November 9, 2009               Department of CSE, NIT Trichy                       13
Artificial Intelligence


                                    Applications
 Speech - recognition & synthesis
         Deriving a textual representation of a spoken utterance
 Natural Language understanding and generation
         NLG system is like a translator that converts a computer based representation
         into a natural language representation.
 Human - Computer Conversation
         Dialogue between humans and computers using natural language.
 Text Generation
         A method for generating sentences from “keywords” or “headwords”.
 Hand writing recognition
         Ability of a computer to receive and interpret intelligible handwritten input
         from sources such as paper documents, photographs, touch-screens and other
         devices




 November 9, 2009               Department of CSE, NIT Trichy                      14
Department of CSE, NIT Trichy




                   Machine Learning




November 9, 2009      Artificial Intelligence                       15
Artificial Intelligence


Machine Learning
The ability to learn

 Learning something new
 Learning something new about something you already knew
 Learning how to do something better, either more efficiently or with more
  accuracy

A system can improve its problem solving accuracy (and possibly efficiency) by
learning how to do something better




 November 9, 2009            Department of CSE, NIT Trichy                 16
Artificial Intelligence


Types of Machine Learning - 1

Symbolic
      Explicitly represented Domain knowledge


Sub-Symbolic or Connectionist Networks
   • Neural Networks
   • simulate the structure and/or functional aspects of
     biological neural networks
   • Simple processing elements (neurons), which can
     exhibit complex global behaviour, determined by
     the connections between the processing elements
     and element parameters


Genetic and Evolutionary Learning
      Learning through adaptation



 November 9, 2009              Department of CSE, NIT Trichy   17
Artificial Intelligence


Types of Machine Learning - 2 - “is there a teacher ???”

Supervised
      Training data is available


Unsupervised
      Training data is not available. Self learning process


Reinforcement
      how an agent ought to take actions in an environment so as to maximize some
      notion of long-term reward




 November 9, 2009                  Department of CSE, NIT Trichy            18
Artificial Intelligence


Types of Machine Learning - 3

Knowledge acquisition

Learning through problem solving

Explanation based learning

Analogy




 November 9, 2009       Department of CSE, NIT Trichy   19
Artificial Intelligence


Framework for Symbol Based Learning


 Data and the goals of the learning task
 The representation of Learned Language
 A set of operations
 The concept space
 Heuristic Search




 November 9, 2009           Department of CSE, NIT Trichy   20
Artificial Intelligence


Framework for Symbol Based Learning




 November 9, 2009     Department of CSE, NIT Trichy   21
Artificial Intelligence


Example - the goal is to build an arch



 positive                                                 positive




                                                          negative
 negative




 November 9, 2009         Department of CSE, NIT Trichy          22
Artificial Intelligence


Example




 November 9, 2009   Department of CSE, NIT Trichy   23
Artificial Intelligence


Example




 November 9, 2009   Department of CSE, NIT Trichy   24
Artificial Intelligence


Example




 November 9, 2009   Department of CSE, NIT Trichy   25
Artificial Intelligence


                    Version Space Search
Concept space




 November 9, 2009    Department of CSE, NIT Trichy   26
Artificial Intelligence


                               Version Space Search

Generalization Operations

Color(ball, red)
          generalizes to Color(X, red)

Shape(X, round) ^ Size(X, small) ^ Color(X, red)
          generalizes to Shape(X, round) ^ Size(X, small)


Covering

p covers q




 November 9, 2009                 Department of CSE, NIT Trichy   27
Artificial Intelligence


                                  Version Space Search

Candidate Elimination Algorithm

     Specific to general direction
     General to specific direction
     Bi-directional




    November 9, 2009                  Department of CSE, NIT Trichy   28
Artificial Intelligence


                      Version Space Search

Role of negative examples




 November 9, 2009       Department of CSE, NIT Trichy   29
Artificial Intelligence


          Version Space Search - Specific to general direction




November 9, 2009           Department of CSE, NIT Trichy         30
Artificial Intelligence


  Version Space Search - Specific to general direction - example




November 9, 2009        Department of CSE, NIT Trichy              31
Artificial Intelligence


          Version Space Search - General to specific direction




November 9, 2009           Department of CSE, NIT Trichy         32
Artificial Intelligence


  Version Space Search - General to specific direction - example




November 9, 2009        Department of CSE, NIT Trichy              33
Artificial Intelligence




November 9, 2009   Department of CSE, NIT Trichy   34
Artificial Intelligence


                     Version Space Search
How the algorithm works




 November 9, 2009     Department of CSE, NIT Trichy   35
Artificial Intelligence




                        Thank you




November 9, 2009   Department of CSE, NIT Trichy   36

Más contenido relacionado

La actualidad más candente

Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Garry D. Lasaga
 
Natural Language Processing (NLP)
Natural Language Processing (NLP)Natural Language Processing (NLP)
Natural Language Processing (NLP)Yuriy Guts
 
Stuart russell and peter norvig artificial intelligence - a modern approach...
Stuart russell and peter norvig   artificial intelligence - a modern approach...Stuart russell and peter norvig   artificial intelligence - a modern approach...
Stuart russell and peter norvig artificial intelligence - a modern approach...Lê Anh Đạt
 
Natural language processing
Natural language processing Natural language processing
Natural language processing Md.Sumon Sarder
 
Natural lanaguage processing
Natural lanaguage processingNatural lanaguage processing
Natural lanaguage processinggulshan kumar
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language ProcessingPranav Gupta
 
Natural language processing (NLP) introduction
Natural language processing (NLP) introductionNatural language processing (NLP) introduction
Natural language processing (NLP) introductionRobert Lujo
 
Natural language processing
Natural language processingNatural language processing
Natural language processingYogendra Tamang
 
natural language processing help at myassignmenthelp.net
natural language processing  help at myassignmenthelp.netnatural language processing  help at myassignmenthelp.net
natural language processing help at myassignmenthelp.netwww.myassignmenthelp.net
 
Deep neural networks
Deep neural networksDeep neural networks
Deep neural networksSi Haem
 
Deep Learning for Natural Language Processing
Deep Learning for Natural Language ProcessingDeep Learning for Natural Language Processing
Deep Learning for Natural Language ProcessingDevashish Shanker
 
Natural language processing PPT presentation
Natural language processing PPT presentationNatural language processing PPT presentation
Natural language processing PPT presentationSai Mohith
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processingrohitnayak
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processingsaurabhnarhe
 
Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 DigiGurukul
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingVeenaSKumar2
 
Natural language processing
Natural language processingNatural language processing
Natural language processingprashantdahake
 

La actualidad más candente (20)

Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
 
Natural Language Processing (NLP)
Natural Language Processing (NLP)Natural Language Processing (NLP)
Natural Language Processing (NLP)
 
Stuart russell and peter norvig artificial intelligence - a modern approach...
Stuart russell and peter norvig   artificial intelligence - a modern approach...Stuart russell and peter norvig   artificial intelligence - a modern approach...
Stuart russell and peter norvig artificial intelligence - a modern approach...
 
Natural language processing
Natural language processing Natural language processing
Natural language processing
 
Natural lanaguage processing
Natural lanaguage processingNatural lanaguage processing
Natural lanaguage processing
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processing
 
Natural language processing (NLP) introduction
Natural language processing (NLP) introductionNatural language processing (NLP) introduction
Natural language processing (NLP) introduction
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
natural language processing help at myassignmenthelp.net
natural language processing  help at myassignmenthelp.netnatural language processing  help at myassignmenthelp.net
natural language processing help at myassignmenthelp.net
 
NLP
NLPNLP
NLP
 
Deep neural networks
Deep neural networksDeep neural networks
Deep neural networks
 
Deep Learning for Natural Language Processing
Deep Learning for Natural Language ProcessingDeep Learning for Natural Language Processing
Deep Learning for Natural Language Processing
 
Natural language processing PPT presentation
Natural language processing PPT presentationNatural language processing PPT presentation
Natural language processing PPT presentation
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processing
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1
 
Machine learning
Machine learningMachine learning
Machine learning
 
NLP
NLPNLP
NLP
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 

Similar a Natural Language Processing and Machine Learning

artificial intelligence
artificial intelligenceartificial intelligence
artificial intelligenceMayank Saxena
 
ARRTIFICIAL INTELLIGENCE [Autosaved].pptx
ARRTIFICIAL INTELLIGENCE [Autosaved].pptxARRTIFICIAL INTELLIGENCE [Autosaved].pptx
ARRTIFICIAL INTELLIGENCE [Autosaved].pptxRoopsingh61
 
Aritficial intelligence
Aritficial intelligenceAritficial intelligence
Aritficial intelligenceMaqsood Awan
 
artificial intelligence
artificial  intelligence artificial  intelligence
artificial intelligence Aamir Kiyani
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligenceJaveria Akram
 
Artificial Intelligence Research Topics for PhD Manuscripts 2021 - Phdassistance
Artificial Intelligence Research Topics for PhD Manuscripts 2021 - PhdassistanceArtificial Intelligence Research Topics for PhD Manuscripts 2021 - Phdassistance
Artificial Intelligence Research Topics for PhD Manuscripts 2021 - PhdassistancePhD Assistance
 
Advanced Artificial Intelligence
Advanced Artificial IntelligenceAdvanced Artificial Intelligence
Advanced Artificial IntelligenceAshik Iqbal
 
Artificial inteligence
Artificial inteligenceArtificial inteligence
Artificial inteligenceAdarsh Saxena
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligenceNitesh Kumar
 
Arifical Intelligence
Arifical IntelligenceArifical Intelligence
Arifical IntelligenceTaimoor Riaz
 
Artifitial intelligence (ai) all in one
Artifitial intelligence (ai) all in oneArtifitial intelligence (ai) all in one
Artifitial intelligence (ai) all in onejehan1987
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceXʎz ʞsɥ
 
AI_01_introduction.pptx
AI_01_introduction.pptxAI_01_introduction.pptx
AI_01_introduction.pptxYousef Aburawi
 
Artificial intelligence powerpoint presentation
Artificial intelligence powerpoint presentationArtificial intelligence powerpoint presentation
Artificial intelligence powerpoint presentationmadhusrisanapathi2
 

Similar a Natural Language Processing and Machine Learning (20)

artificial intelligence
artificial intelligenceartificial intelligence
artificial intelligence
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
ARRTIFICIAL INTELLIGENCE [Autosaved].pptx
ARRTIFICIAL INTELLIGENCE [Autosaved].pptxARRTIFICIAL INTELLIGENCE [Autosaved].pptx
ARRTIFICIAL INTELLIGENCE [Autosaved].pptx
 
Beekman5 std ppt_14
Beekman5 std ppt_14Beekman5 std ppt_14
Beekman5 std ppt_14
 
Artificial intel
Artificial intelArtificial intel
Artificial intel
 
Aritficial intelligence
Aritficial intelligenceAritficial intelligence
Aritficial intelligence
 
Ai notes
Ai notesAi notes
Ai notes
 
artificial intelligence
artificial  intelligence artificial  intelligence
artificial intelligence
 
IS
ISIS
IS
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Artificial Intelligence Research Topics for PhD Manuscripts 2021 - Phdassistance
Artificial Intelligence Research Topics for PhD Manuscripts 2021 - PhdassistanceArtificial Intelligence Research Topics for PhD Manuscripts 2021 - Phdassistance
Artificial Intelligence Research Topics for PhD Manuscripts 2021 - Phdassistance
 
Advanced Artificial Intelligence
Advanced Artificial IntelligenceAdvanced Artificial Intelligence
Advanced Artificial Intelligence
 
Artificial inteligence
Artificial inteligenceArtificial inteligence
Artificial inteligence
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Arifical Intelligence
Arifical IntelligenceArifical Intelligence
Arifical Intelligence
 
Artifitial intelligence (ai) all in one
Artifitial intelligence (ai) all in oneArtifitial intelligence (ai) all in one
Artifitial intelligence (ai) all in one
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
AI_01_introduction.pptx
AI_01_introduction.pptxAI_01_introduction.pptx
AI_01_introduction.pptx
 
Mis 008
Mis 008Mis 008
Mis 008
 
Artificial intelligence powerpoint presentation
Artificial intelligence powerpoint presentationArtificial intelligence powerpoint presentation
Artificial intelligence powerpoint presentation
 

Más de Karthik Sankar

Clearing the air on Cloud Computing
Clearing the air on Cloud ComputingClearing the air on Cloud Computing
Clearing the air on Cloud ComputingKarthik Sankar
 
The Science of Violin Harmonics with special focus on Articulation, Vibrato a...
The Science of Violin Harmonics with special focus on Articulation, Vibrato a...The Science of Violin Harmonics with special focus on Articulation, Vibrato a...
The Science of Violin Harmonics with special focus on Articulation, Vibrato a...Karthik Sankar
 
Realizing Parallelism and Transparency in Applications through Idempotence
Realizing Parallelism and Transparency in Applications through IdempotenceRealizing Parallelism and Transparency in Applications through Idempotence
Realizing Parallelism and Transparency in Applications through IdempotenceKarthik Sankar
 
Tamil Morphological Analysis
Tamil Morphological AnalysisTamil Morphological Analysis
Tamil Morphological AnalysisKarthik Sankar
 

Más de Karthik Sankar (9)

Clearing the air on Cloud Computing
Clearing the air on Cloud ComputingClearing the air on Cloud Computing
Clearing the air on Cloud Computing
 
The Science of Violin Harmonics with special focus on Articulation, Vibrato a...
The Science of Violin Harmonics with special focus on Articulation, Vibrato a...The Science of Violin Harmonics with special focus on Articulation, Vibrato a...
The Science of Violin Harmonics with special focus on Articulation, Vibrato a...
 
Realizing Parallelism and Transparency in Applications through Idempotence
Realizing Parallelism and Transparency in Applications through IdempotenceRealizing Parallelism and Transparency in Applications through Idempotence
Realizing Parallelism and Transparency in Applications through Idempotence
 
Rates of exchange
Rates of exchangeRates of exchange
Rates of exchange
 
Tamil Morphological Analysis
Tamil Morphological AnalysisTamil Morphological Analysis
Tamil Morphological Analysis
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Java Fx
Java FxJava Fx
Java Fx
 
Sadhana
SadhanaSadhana
Sadhana
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 

Último

The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 

Último (20)

The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 

Natural Language Processing and Machine Learning

  • 1. Department of CSE, NIT Trichy An Introduction to Natural Language Processing and Machine Learning Karthik Sankar Department of CSE NIT Trichy November 9, 2009 Artificial Intelligence 1
  • 2. Department of CSE, NIT Trichy Natural Language Processing November 9, 2009 Artificial Intelligence 2
  • 3. Artificial Intelligence A lot of human communication is by means of natural language So computers could be a ton more useful if they could read our email, do our library research, chat to us, do all of these things involve dealing with natural language They're pretty good at dealing with machine languages that are made for them, but human languages, not so. “Look. The computer just can't deal with the kind of stuff that humans produce, and how they naturally interact” We’re exploiting human cleverness rather than working out how to have computer cleverness. November 9, 2009 Department of CSE, NIT Trichy 3
  • 4. Artificial Intelligence Definition NLP is a field of computer science and linguistics concerned with the interactions between computers and human (natural) languages Categories  Phonology - study of speech sounds  Morphology - study of meaningful components of words  Syntax - study of structural relationships between words  Semantics - study of meaning November 9, 2009 Department of CSE, NIT Trichy 4
  • 5. Artificial Intelligence Phonology Modeling the pronunciation of a word as a string of symbols – PHONES Articulatory Phonetics: How phones are produced as the various organs in the mouth, throat and nose modify the airflow from the lungs. Can Chair Coach Syllables November 9, 2009 Department of CSE, NIT Trichy 5
  • 6. Artificial Intelligence Morphology Identification, analysis and description of the structure of words. Inflections Number dog/dogs : goose/geese Tense hunt – hunted Case his - hers Gender Person Word Formation mother in law hot dog Finite State Machines Finite State Transducers November 9, 2009 Department of CSE, NIT Trichy 6
  • 7. Artificial Intelligence Syntax Part of Speech Tagging Noun Verb Adjective … I can write – aux. verb OR verb OR noun Context Free Grammars November 9, 2009 Department of CSE, NIT Trichy 7
  • 8. Artificial Intelligence Semantics Understanding and representing the meaning having Who has What does he have First Order Predicate Calculus Has(Ram, book) November 9, 2009 Department of CSE, NIT Trichy 8
  • 9. Artificial Intelligence Ambiguity Adjective: the adjectives are associated with which of the two nouns ? “pretty little girls' school” Pronoun: which noun does ‘they’ relate to ? We gave the monkeys the bananas because they were hungry. We gave the monkeys the bananas because they were over-ripe. Emphasis: notice the change in meaning due to the change in stress I never said she stole my money I never said she stole my money I never said she stole my money I never said she stole my money I never said she stole my money I never said she stole my money I never said she stole my money November 9, 2009 Department of CSE, NIT Trichy 9
  • 10. Artificial Intelligence Ambiguity - contd Fed raises interest rates half a percent in effort to control inflation She rates highly Our water rates are high Japanese movies interest me The interest rate is 8 percent Fed raises The raises we received was small November 9, 2009 Department of CSE, NIT Trichy 10
  • 11. Artificial Intelligence Resolving Ambiguity  Part of Speech Tagging  Word Sense Disambiguation  Probabilistic Parsing  Speech Act Interpretation November 9, 2009 Department of CSE, NIT Trichy 11
  • 12. Artificial Intelligence Perceptions Perception provides agents with information about the world they inhabit. Perception is initiated by sensors. A sensor is anything that can record some aspect of the environment and pass it as input to an agent program. The sensor could be as simple as a one-bit sensor that detects whether a switch is on or off or as complex as the retina of the human eye, which contains more than a hundred million photosensitive elements  Image processing  Computer Vision  Speech recognition  Facial recognition  Object recognition November 9, 2009 Department of CSE, NIT Trichy 12
  • 13. Artificial Intelligence Applications  Information retrieval & Web Search Information retrieval (IR) is the science of searching for documents, for information within documents, and for metadata about documents, as well as that of searching databases and the World Wide Web.  Information Extraction Information extraction (IE) is a type of information retrieval whose goal is to automatically extract structured information, i.e. categorized and contextually and semantically well-defined data from a certain domain, from unstructured machine-readable documents  Question Answering Type in keywords to Asking Questions in Natural Language. Response from documents to extracted or generated answer  Text Summarization Process of distilling most important information from a source to produce an abridged version  Machine Translation use of computer software to translate text or speech from one natural language to another. November 9, 2009 Department of CSE, NIT Trichy 13
  • 14. Artificial Intelligence Applications  Speech - recognition & synthesis Deriving a textual representation of a spoken utterance  Natural Language understanding and generation NLG system is like a translator that converts a computer based representation into a natural language representation.  Human - Computer Conversation Dialogue between humans and computers using natural language.  Text Generation A method for generating sentences from “keywords” or “headwords”.  Hand writing recognition Ability of a computer to receive and interpret intelligible handwritten input from sources such as paper documents, photographs, touch-screens and other devices November 9, 2009 Department of CSE, NIT Trichy 14
  • 15. Department of CSE, NIT Trichy Machine Learning November 9, 2009 Artificial Intelligence 15
  • 16. Artificial Intelligence Machine Learning The ability to learn  Learning something new  Learning something new about something you already knew  Learning how to do something better, either more efficiently or with more accuracy A system can improve its problem solving accuracy (and possibly efficiency) by learning how to do something better November 9, 2009 Department of CSE, NIT Trichy 16
  • 17. Artificial Intelligence Types of Machine Learning - 1 Symbolic Explicitly represented Domain knowledge Sub-Symbolic or Connectionist Networks • Neural Networks • simulate the structure and/or functional aspects of biological neural networks • Simple processing elements (neurons), which can exhibit complex global behaviour, determined by the connections between the processing elements and element parameters Genetic and Evolutionary Learning Learning through adaptation November 9, 2009 Department of CSE, NIT Trichy 17
  • 18. Artificial Intelligence Types of Machine Learning - 2 - “is there a teacher ???” Supervised Training data is available Unsupervised Training data is not available. Self learning process Reinforcement how an agent ought to take actions in an environment so as to maximize some notion of long-term reward November 9, 2009 Department of CSE, NIT Trichy 18
  • 19. Artificial Intelligence Types of Machine Learning - 3 Knowledge acquisition Learning through problem solving Explanation based learning Analogy November 9, 2009 Department of CSE, NIT Trichy 19
  • 20. Artificial Intelligence Framework for Symbol Based Learning  Data and the goals of the learning task  The representation of Learned Language  A set of operations  The concept space  Heuristic Search November 9, 2009 Department of CSE, NIT Trichy 20
  • 21. Artificial Intelligence Framework for Symbol Based Learning November 9, 2009 Department of CSE, NIT Trichy 21
  • 22. Artificial Intelligence Example - the goal is to build an arch positive positive negative negative November 9, 2009 Department of CSE, NIT Trichy 22
  • 23. Artificial Intelligence Example November 9, 2009 Department of CSE, NIT Trichy 23
  • 24. Artificial Intelligence Example November 9, 2009 Department of CSE, NIT Trichy 24
  • 25. Artificial Intelligence Example November 9, 2009 Department of CSE, NIT Trichy 25
  • 26. Artificial Intelligence Version Space Search Concept space November 9, 2009 Department of CSE, NIT Trichy 26
  • 27. Artificial Intelligence Version Space Search Generalization Operations Color(ball, red) generalizes to Color(X, red) Shape(X, round) ^ Size(X, small) ^ Color(X, red) generalizes to Shape(X, round) ^ Size(X, small) Covering p covers q November 9, 2009 Department of CSE, NIT Trichy 27
  • 28. Artificial Intelligence Version Space Search Candidate Elimination Algorithm  Specific to general direction  General to specific direction  Bi-directional November 9, 2009 Department of CSE, NIT Trichy 28
  • 29. Artificial Intelligence Version Space Search Role of negative examples November 9, 2009 Department of CSE, NIT Trichy 29
  • 30. Artificial Intelligence Version Space Search - Specific to general direction November 9, 2009 Department of CSE, NIT Trichy 30
  • 31. Artificial Intelligence Version Space Search - Specific to general direction - example November 9, 2009 Department of CSE, NIT Trichy 31
  • 32. Artificial Intelligence Version Space Search - General to specific direction November 9, 2009 Department of CSE, NIT Trichy 32
  • 33. Artificial Intelligence Version Space Search - General to specific direction - example November 9, 2009 Department of CSE, NIT Trichy 33
  • 34. Artificial Intelligence November 9, 2009 Department of CSE, NIT Trichy 34
  • 35. Artificial Intelligence Version Space Search How the algorithm works November 9, 2009 Department of CSE, NIT Trichy 35
  • 36. Artificial Intelligence Thank you November 9, 2009 Department of CSE, NIT Trichy 36