SlideShare a Scribd company logo
1 of 47
NLTK Natural Language Processing made easy Elvis Joel D’Souza Gopikrishnan Nambiar Ashutosh Pandey
WHAT: Session Objective ,[object Object]
HOW: Session Layout ,[object Object],[object Object],[object Object],[object Object]
 
Why Python?
Data Structures ,[object Object],[object Object],[object Object],[object Object],[object Object]
List ,[object Object],[object Object],listOfWords = [‘this’,’is’,’a’,’list’,’of’,’words’]  listOfRandomStuff = [1,’pen’,’costs’,’Rs.’,6.50]
Tuple ,[object Object],[object Object],Example:  ( 100 , 10 , 0.01 ,’ hundred ’) Number Square root Reciprocal Number in words
Return a tuple ,[object Object],[object Object],[object Object],One very useful situation is  returning multiple values  from a function. To return multiple values in many other languages requires creating an object or container of some type.
Dictionary ,[object Object],[object Object],[object Object],{ 1 : ‘ one ’,  2 : ‘ two ’,  3 : ‘ three ’}
Sets ,[object Object],[object Object],[object Object],SetOfBrowsers=set([‘IE’,’Firefox’,’Opera’,’Chrome’])
Control Statements
Decision Control - If num = 3
Loop Control - While number  = 10
Loop Control - For
Functions - Syntax ,[object Object],[object Object],[object Object],[object Object]
Functions - Example
Modules ,[object Object],[object Object],[object Object]
Import import   math The import keyword is used to tell Python, that we need the ‘math’ module. This statement makes all the functions in this module accessible in the program.
Using Modules – An Example print  math. sqrt( 100 )   sqrt is a function math is a module math.sqrt(100) returns 10 This is being printed to the standard output
Natural Language Processing (NLP)
Natural Language Processing ,[object Object]
Why NLP ,[object Object],[object Object],[object Object],[object Object],[object Object]
Stemming ,[object Object],[object Object],[object Object]
Part of speech tagging(POS Tagging) ,[object Object],[object Object]
POS tagging - continued ,[object Object],[object Object]
POS Tagging – An Example The   ball   is   red NOUN VERB ADJECTIVE ARTICLE
Parsing ,[object Object]
Parsing– An Example The   boy   went   home NOUN VERB NOUN ARTICLE NP VP The boy went home
Challenges ,[object Object],[object Object]
[object Object],Here goes an example…
[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
NLTK Natural Language Toolkit
Design Goals
Exploring Corpora ,[object Object],[object Object]
 
Loading your own corpus ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
NLTK Corpora ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Computing with Language: Simple Statistics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Cumulative Frequency Plot for 50 Most Frequently Words in  Moby Dick
POS tagging
WordNet Lemmatizer
Parsing ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Authorship Attribution An Example
Find nltk @  <python-installation>ibite-packagesltk
The Road Ahead ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

Full Python in 20 slides
Full Python in 20 slidesFull Python in 20 slides
Full Python in 20 slides
rfojdar
 

What's hot (20)

NLTK in 20 minutes
NLTK in 20 minutesNLTK in 20 minutes
NLTK in 20 minutes
 
Natural language processing PPT presentation
Natural language processing PPT presentationNatural language processing PPT presentation
Natural language processing PPT presentation
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Natural language processing and its application in ai
Natural language processing and its application in aiNatural language processing and its application in ai
Natural language processing and its application in ai
 
Natural language procssing
Natural language procssing Natural language procssing
Natural language procssing
 
Full Python in 20 slides
Full Python in 20 slidesFull Python in 20 slides
Full Python in 20 slides
 
Introduction to Named Entity Recognition
Introduction to Named Entity RecognitionIntroduction to Named Entity Recognition
Introduction to Named Entity Recognition
 
Natural Language processing
Natural Language processingNatural Language processing
Natural Language processing
 
Introduction to natural language processing, history and origin
Introduction to natural language processing, history and originIntroduction to natural language processing, history and origin
Introduction to natural language processing, history and origin
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
Natural Language Processing seminar review
Natural Language Processing seminar review Natural Language Processing seminar review
Natural Language Processing seminar review
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
python conditional statement.pptx
python conditional statement.pptxpython conditional statement.pptx
python conditional statement.pptx
 
Text similarity measures
Text similarity measuresText similarity measures
Text similarity measures
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
Information retrieval 10 tf idf and bag of words
Information retrieval 10 tf idf and bag of wordsInformation retrieval 10 tf idf and bag of words
Information retrieval 10 tf idf and bag of words
 
Nlp
NlpNlp
Nlp
 
Nlp toolkits and_preprocessing_techniques
Nlp toolkits and_preprocessing_techniquesNlp toolkits and_preprocessing_techniques
Nlp toolkits and_preprocessing_techniques
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
Natural Language Processing (NLP) & Text Mining Tutorial Using NLTK | NLP Tra...
Natural Language Processing (NLP) & Text Mining Tutorial Using NLTK | NLP Tra...Natural Language Processing (NLP) & Text Mining Tutorial Using NLTK | NLP Tra...
Natural Language Processing (NLP) & Text Mining Tutorial Using NLTK | NLP Tra...
 

Viewers also liked

Practical Natural Language Processing
Practical Natural Language ProcessingPractical Natural Language Processing
Practical Natural Language Processing
Jaganadh Gopinadhan
 

Viewers also liked (20)

Practical Natural Language Processing
Practical Natural Language ProcessingPractical Natural Language Processing
Practical 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
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Natural language processing with python and amharic syntax parse tree by dani...
Natural language processing with python and amharic syntax parse tree by dani...Natural language processing with python and amharic syntax parse tree by dani...
Natural language processing with python and amharic syntax parse tree by dani...
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processing
 
Natural Language Processing and Python
Natural Language Processing and PythonNatural Language Processing and Python
Natural Language Processing and Python
 
Natural Language Processing with Neo4j
Natural Language Processing with Neo4jNatural Language Processing with Neo4j
Natural Language Processing with Neo4j
 
GPU Accelerated Natural Language Processing by Guillermo Molini
GPU Accelerated Natural Language Processing by Guillermo MoliniGPU Accelerated Natural Language Processing by Guillermo Molini
GPU Accelerated Natural Language Processing by Guillermo Molini
 
Four ‘Magic’ Questions that Help Resolve Most Problems - Introduction to The ...
Four ‘Magic’ Questions that Help Resolve Most Problems - Introduction to The ...Four ‘Magic’ Questions that Help Resolve Most Problems - Introduction to The ...
Four ‘Magic’ Questions that Help Resolve Most Problems - Introduction to The ...
 
JavaScript Leaks
JavaScript LeaksJavaScript Leaks
JavaScript Leaks
 
Chaplin.js in real life
Chaplin.js in real lifeChaplin.js in real life
Chaplin.js in real life
 
Knowledge extraction from the Encyclopedia of Life using Python NLTK
Knowledge extraction from the Encyclopedia of Life using Python NLTKKnowledge extraction from the Encyclopedia of Life using Python NLTK
Knowledge extraction from the Encyclopedia of Life using Python NLTK
 
NLTK Book Chapter 2
NLTK Book Chapter 2NLTK Book Chapter 2
NLTK Book Chapter 2
 
codin9cafe[2015.03. 18]Python learning for natural language processing - 홍은기(...
codin9cafe[2015.03. 18]Python learning for natural language processing - 홍은기(...codin9cafe[2015.03. 18]Python learning for natural language processing - 홍은기(...
codin9cafe[2015.03. 18]Python learning for natural language processing - 홍은기(...
 
PG-Strom
PG-StromPG-Strom
PG-Strom
 
Practical Natural Language Processing From Theory to Industrial Applications
Practical Natural Language Processing From Theory to Industrial Applications Practical Natural Language Processing From Theory to Industrial Applications
Practical Natural Language Processing From Theory to Industrial Applications
 
Predicting Candidate Performance From Text NLP
Predicting Candidate Performance From Text NLP Predicting Candidate Performance From Text NLP
Predicting Candidate Performance From Text NLP
 
Artifial intelligence
Artifial intelligenceArtifial intelligence
Artifial intelligence
 
Lec 15,16,17 NLP.machine translation
Lec 15,16,17  NLP.machine translationLec 15,16,17  NLP.machine translation
Lec 15,16,17 NLP.machine translation
 

Similar to NLTK: Natural Language Processing made easy

Similar to NLTK: Natural Language Processing made easy (20)

Nltk
NltkNltk
Nltk
 
Pycon India 2018 Natural Language Processing Workshop
Pycon India 2018   Natural Language Processing WorkshopPycon India 2018   Natural Language Processing Workshop
Pycon India 2018 Natural Language Processing Workshop
 
Natural Language Processing_in semantic web.pptx
Natural Language Processing_in semantic web.pptxNatural Language Processing_in semantic web.pptx
Natural Language Processing_in semantic web.pptx
 
BOW.pptx
BOW.pptxBOW.pptx
BOW.pptx
 
MACHINE-DRIVEN TEXT ANALYSIS
MACHINE-DRIVEN TEXT ANALYSISMACHINE-DRIVEN TEXT ANALYSIS
MACHINE-DRIVEN TEXT ANALYSIS
 
NLP PPT.pptx
NLP PPT.pptxNLP PPT.pptx
NLP PPT.pptx
 
AI UNIT 3 - SRCAS JOC.pptx enjoy this ppt
AI UNIT 3 - SRCAS JOC.pptx enjoy this pptAI UNIT 3 - SRCAS JOC.pptx enjoy this ppt
AI UNIT 3 - SRCAS JOC.pptx enjoy this ppt
 
NLP.pptx
NLP.pptxNLP.pptx
NLP.pptx
 
NLP Deep Learning with Tensorflow
NLP Deep Learning with TensorflowNLP Deep Learning with Tensorflow
NLP Deep Learning with Tensorflow
 
Natural language processing (Python)
Natural language processing (Python)Natural language processing (Python)
Natural language processing (Python)
 
NLP todo
NLP todoNLP todo
NLP todo
 
Big data
Big dataBig data
Big data
 
KiwiPyCon 2014 - NLP with Python tutorial
KiwiPyCon 2014 - NLP with Python tutorialKiwiPyCon 2014 - NLP with Python tutorial
KiwiPyCon 2014 - NLP with Python tutorial
 
Natural Language Processing using Text Mining
Natural Language Processing using Text MiningNatural Language Processing using Text Mining
Natural Language Processing using Text Mining
 
Open nlp presentationss
Open nlp presentationssOpen nlp presentationss
Open nlp presentationss
 
Text classification-php-v4
Text classification-php-v4Text classification-php-v4
Text classification-php-v4
 
Basic of Python- Hands on Session
Basic of Python- Hands on SessionBasic of Python- Hands on Session
Basic of Python- Hands on Session
 
NLP
NLPNLP
NLP
 
NLP
NLPNLP
NLP
 
Pycon ke word vectors
Pycon ke   word vectorsPycon ke   word vectors
Pycon ke word vectors
 

NLTK: Natural Language Processing made easy