SlideShare uma empresa Scribd logo
1 de 36
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

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
 
Natural language processing (nlp)
Natural language processing (nlp)Natural language processing (nlp)
Natural language processing (nlp)Kuppusamy P
 
Natural Language Processing
Natural Language Processing Natural Language Processing
Natural Language Processing Adarsh Saxena
 
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...Simplilearn
 
Natural language processing
Natural language processingNatural language processing
Natural language processingYogendra Tamang
 
Machine learning overview
Machine learning overviewMachine learning overview
Machine learning overviewprih_yah
 
Machine Learning
Machine LearningMachine Learning
Machine LearningShrey Malik
 
Machine Learning
Machine LearningMachine Learning
Machine LearningVivek Garg
 
Natural language processing (NLP) introduction
Natural language processing (NLP) introductionNatural language processing (NLP) introduction
Natural language processing (NLP) introductionRobert Lujo
 
Introduction to Natural Language Processing (NLP)
Introduction to Natural Language Processing (NLP)Introduction to Natural Language Processing (NLP)
Introduction to Natural Language Processing (NLP)VenkateshMurugadas
 
Natural language processing (NLP)
Natural language processing (NLP) Natural language processing (NLP)
Natural language processing (NLP) ASWINKP11
 
Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?Marina Santini
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingRishikese MR
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language ProcessingMercy Rani
 
Machine learning
Machine learningMachine learning
Machine learningInfoFarm
 

Mais procurados (20)

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
 
Natural language processing (nlp)
Natural language processing (nlp)Natural language processing (nlp)
Natural language processing (nlp)
 
Natural Language Processing
Natural Language Processing Natural Language Processing
Natural Language Processing
 
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
Machine learning overview
Machine learning overviewMachine learning overview
Machine learning overview
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
Nlp
NlpNlp
Nlp
 
Natural language processing (NLP) introduction
Natural language processing (NLP) introductionNatural language processing (NLP) introduction
Natural language processing (NLP) introduction
 
Introduction to Natural Language Processing (NLP)
Introduction to Natural Language Processing (NLP)Introduction to Natural Language Processing (NLP)
Introduction to Natural Language Processing (NLP)
 
Natural language processing (NLP)
Natural language processing (NLP) Natural language processing (NLP)
Natural language processing (NLP)
 
Machine learning
Machine learningMachine learning
Machine learning
 
Learning
LearningLearning
Learning
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
Machine learning
Machine learningMachine learning
Machine learning
 
Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processing
 
Machine learning
Machine learningMachine learning
Machine learning
 

Semelhante 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 Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceBise Mond
 
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
 

Semelhante 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 Intelligence
Artificial IntelligenceArtificial Intelligence
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
 

Mais 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
 

Mais 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

Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
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
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
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
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 

Último (20)

Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
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
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
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
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 

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