SlideShare une entreprise Scribd logo
1  sur  36
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

What Is The Next Level Of AI Technology?
What Is The Next Level Of AI Technology?What Is The Next Level Of AI Technology?
What Is The Next Level Of AI Technology?Bernard Marr
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processingrohitnayak
 
How to build a GPT model.pdf
How to build a GPT model.pdfHow to build a GPT model.pdf
How to build a GPT model.pdfStephenAmell4
 
IoT and machine learning - Computational Intelligence conference
IoT and machine learning - Computational Intelligence conferenceIoT and machine learning - Computational Intelligence conference
IoT and machine learning - Computational Intelligence conferenceAjit Jaokar
 
Natural Language Processing (NLP)
Natural Language Processing (NLP)Natural Language Processing (NLP)
Natural Language Processing (NLP)Yuriy Guts
 
Large Language Models - Chat AI.pdf
Large Language Models - Chat AI.pdfLarge Language Models - Chat AI.pdf
Large Language Models - Chat AI.pdfDavid Rostcheck
 
How ChatGPT and AI-assisted coding changes software engineering profoundly
How ChatGPT and AI-assisted coding changes software engineering profoundlyHow ChatGPT and AI-assisted coding changes software engineering profoundly
How ChatGPT and AI-assisted coding changes software engineering profoundlyPekka Abrahamsson / Tampere University
 
Natural Language Processing seminar review
Natural Language Processing seminar review Natural Language Processing seminar review
Natural Language Processing seminar review Jayneel Vora
 
Tokenization using nlp | NLP Course
Tokenization using nlp | NLP CourseTokenization using nlp | NLP Course
Tokenization using nlp | NLP CourseRAKESH P
 
Generative AI: Past, Present, and Future – A Practitioner's Perspective
Generative AI: Past, Present, and Future – A Practitioner's PerspectiveGenerative AI: Past, Present, and Future – A Practitioner's Perspective
Generative AI: Past, Present, and Future – A Practitioner's PerspectiveHuahai Yang
 
Principles of Artificial Intelligence & Machine Learning
Principles of Artificial Intelligence & Machine LearningPrinciples of Artificial Intelligence & Machine Learning
Principles of Artificial Intelligence & Machine LearningJerry Lu
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language ProcessingPranav Gupta
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingIla Group
 
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNINGARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNINGDr Sandeep Ranjan
 
Natural Language Processing in AI
Natural Language Processing in AINatural Language Processing in AI
Natural Language Processing in AISaurav Shrestha
 

Tendances (20)

What Is The Next Level Of AI Technology?
What Is The Next Level Of AI Technology?What Is The Next Level Of AI Technology?
What Is The Next Level Of AI Technology?
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processing
 
How to build a GPT model.pdf
How to build a GPT model.pdfHow to build a GPT model.pdf
How to build a GPT model.pdf
 
IoT and machine learning - Computational Intelligence conference
IoT and machine learning - Computational Intelligence conferenceIoT and machine learning - Computational Intelligence conference
IoT and machine learning - Computational Intelligence conference
 
Natural Language Processing (NLP)
Natural Language Processing (NLP)Natural Language Processing (NLP)
Natural Language Processing (NLP)
 
Machine Learning and Artificial Intelligence
Machine Learning and Artificial IntelligenceMachine Learning and Artificial Intelligence
Machine Learning and Artificial Intelligence
 
Large Language Models - Chat AI.pdf
Large Language Models - Chat AI.pdfLarge Language Models - Chat AI.pdf
Large Language Models - Chat AI.pdf
 
How ChatGPT and AI-assisted coding changes software engineering profoundly
How ChatGPT and AI-assisted coding changes software engineering profoundlyHow ChatGPT and AI-assisted coding changes software engineering profoundly
How ChatGPT and AI-assisted coding changes software engineering profoundly
 
Natural Language Processing seminar review
Natural Language Processing seminar review Natural Language Processing seminar review
Natural Language Processing seminar review
 
Intro to LLMs
Intro to LLMsIntro to LLMs
Intro to LLMs
 
Tokenization using nlp | NLP Course
Tokenization using nlp | NLP CourseTokenization using nlp | NLP Course
Tokenization using nlp | NLP Course
 
Generative AI: Past, Present, and Future – A Practitioner's Perspective
Generative AI: Past, Present, and Future – A Practitioner's PerspectiveGenerative AI: Past, Present, and Future – A Practitioner's Perspective
Generative AI: Past, Present, and Future – A Practitioner's Perspective
 
Principles of Artificial Intelligence & Machine Learning
Principles of Artificial Intelligence & Machine LearningPrinciples of Artificial Intelligence & Machine Learning
Principles of Artificial Intelligence & 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
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNINGARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
 
Deep Neural Networks (DNN)
Deep Neural Networks (DNN)Deep Neural Networks (DNN)
Deep Neural Networks (DNN)
 
Natural Language Processing in AI
Natural Language Processing in AINatural Language Processing in AI
Natural Language Processing in AI
 
Machine learning
Machine learning Machine learning
Machine learning
 

Similaire à 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
 

Similaire à 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
 

Plus 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
 

Plus 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
 

Dernier

Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
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
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
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
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
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
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
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
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
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
 
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
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 

Dernier (20)

Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
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
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
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
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
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.
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
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...
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
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
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 

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