SlideShare a Scribd company logo
Introduction to Text Mining
Agenda
• Defining Text Mining
• Structured vs. Unstructured Data
• Why Text Mining
• Some Text Mining Ambiguities
• Pre-processing the Text
Text Mining
• The discovery by computer of new, previously unknown information, by
automatically extracting information from a usually large amount of different
unstructured textual resources
Previously unknown means:
• Discovering genuinely new information
• Discovering new knowledge vs. merely finding patterns is like the difference
between a detective following clues to find the criminal vs. analysts looking at
crime statistics to assess overall trends in car theft
Unstructured means:
• Free naturally occurring text
• As opposed HTML, XML….
Text Mining Vs. Data Mining
• Data in Data mining is a series of numbers. Data for text mining is a collection of
documents.
• Data mining methods see data in spreadsheet format. Text mining methods see
data in document format
Structured vs. Unstructured Data
• Structured data
• Loadable into “spreadsheets”
• Arranged into rows and columns
• Each cell filled or could be filled
• Data mining friendly
• Unstructured daa
• Microsoft Word, HTML, PDF documents, PPTs
• Usually converted into XML  semi structured
• Not structured into cells
• Variable record length, notes, free form survey-answers
• Text is relatively sparse, inconsistent and not uniform
• Also images, video, music etc.
Why Text Mining?
• Leveraging text should improve decisions and predictions
• Text mining is gaining momentum
• Sentiment analysis (twitter, facebook)
• Predicting stock market
• Predicting churn
• Customer influence
• Customer service and help desk
• Not to mention Watson
Why Text Mining is Hard?
• Language is ambiguous
• Context is needed to clarify
• The same words can have different meaning (homographs)
• Bear (verb) – to support or carry
• Bear (noun) – a large animal
• Different words can mean the same (synonyms)
• Language is subtle
• Concept / word extraction usually results in huge number of dimensions
• Thousands of new fields
• Each field typically has low information content (sparse)
• Misspellings, abbreviations, spelling variants
• Renders search engines, SQL queries.. ineffective.
Some Text Mining Ambiguities
• Homonomy: same word, different meaning
• Mary walked along the bank of the river
• HarborBank is the richest bank in the citys
• Synonymy: Synonyms, different words, similar or same meaning, can
substitute one word for other without changing meaning
• Miss Nelson became a kind of big sister to Benjamin
• Miss Nelson became a kind of large sister to Benjamin
• Polysemy: same word or form, but different, albeit related meaning
• The bank raised its interest rates yesterday
• The store is next to the newly constructed bank
• The bank appeared first in Italy I the Renaissance
• Hyponymy: Concept hierarchy or subclass
• Animal (noun) – cat, dog
• Injury – broken leg, intusion
Seven Types of Text Mining
• Search and Information Retrieval – storage and retrieval of text documents, including
search engines and keyword search
• Document Clustering – Grouping and categorizing terms, snippets, paragraphs or
documents using clustering methods
• Document Classification – grouping and categorizing snippets, paragraphs or document
using data mining classification methods, based on methods trained on labelled
examples
• Web Mining – Data and Text mining on the internet with specific focus on scaled and
interconnectedness of the web
• Information Extraction – Identification and extraction of relevant facts and relationships
from unstructured text
• Natural Language Processing – Low level language processing and understanding of
tasks (eg. Tagging part of speech)
• Concept extraction – Grouping of words and phrases into semantically similar groups
Text Mining – Some Definitions
• Document – a sequence of words and punctuation, following the grammatical
rules of the language.
• Term – usually a word, but can be a word-pair or phrase
• Corpus – a collection of documents
• Lexicon – set of all unique words in corpus
Pre-processing the Text
• Text Normalization
• Parts of Speech Tagging
• Removal of stop words
Stop words – common words that don’t add meaningful content to the document
• Stemming
• Removing suffices and prefixes leaving the root or stem of the word.
• Term weighting
• POS Tagging
• Tokenization
Text Normalization
• Case
• Make all lower case (if you don’t care about proper nouns, titles, etc)
• Clean up transcription and typing errrors
• do n’t, movei
• Correct misspelled words
• Phonetically
• Use fuzzy matching algorithms such as Soundex, Metaphone or string edit distance
• Dictionaries
• Use POS and context to make good guess
Parts of Speech Tagging
• Useful for recognizing names of people, places, organizations, titles
• English language
• Minimum set includes noun, verb, adjective, adverb, prepositions, congjunctions
POS Tags from Penn Tree Bank
Tag Description Tag Description Tag Description
CC Coordinating Conjunction CD Cardinal Number DT Determiner
EX Existential there FW Foreign Word IN Preposition or subordinating
conjuction
JJ Adjective JJR Adjective, comparative JJS Adjective, superlative
LS List Item Marker MD Modal NN Noun, singular or mass
NNS Noun Plural NNPS Proper Noun Plural PDT Prederminer
POS Possessive Ending PRP Personal pronoun PRPS Possessive pronoun
RB Adverb RBR Adverb, comparative RBS Adverb, superlative
RP Particle SYM Symbol TO To
UH Interjection VB Verb, base form VBD Verb, past tens
Example of Tagging
• In this talk, Mr. Pole discussed how Target was using Predictive Analytics including
descriptions of using potential value models, coupon models, and yes predicting
when a woman is due
• In/IN this/DT talk/NN, Mr./NNP Pole/NNP discussed/VBD how/WRB Target/NNP
was/VBD using/VBG Predictive/NNP Analytics/NNP including/VBG
descriptions/NNS of/IN using/VBG potential/JJ value/NN models/NNS,
coupon/NN models/NNS, and yes predicting/VBG when/WRB a/DT woman/NN is
due/JJ
Tokenization
• Converts streams of characters into words
• Main clues (in English): Whitespace
• No single algorithms ‘works’ always
• Some languages do not have white space (Chinese, Japanese)
Stemming
• Normalizes / unifies variations of the same data
• ‘walking’, ‘walks’, ‘walked’, ‘walked’  walk
• Inflectional stemming
• Remove plurals
• Normalize verb tenses
• Remove other affixes
• Stemming to root
• Reduce word to most basic element
• More aggressive than inflectional
• ‘denormalization’  norm
• ‘Apply’, ‘applications’, ‘reapplied’  apply
Common English Stop Words
• a, an, and, are, as, at, be, but, buy, for, if, in, into, is, it, no, not, of, on, or, such,
that, the, their, then, these, they, this, to, was, will, with
• Stop words are very common and rarely provide useful information for
information extraction and concept extraction
• Removing stop words also reduce dimensionality
Dictionaries and Lexicons
• Highly recommended, can be very time consuming
• Reduces set of key words to focus on
• Words of interest
• Dictionary words
• Increase set of keywords to focus on
• Proper nouns
• Acronyms
• Titles
• Numbers
• Key ways to use dictionary
• Local dictionary (specialized words)
• Stop words and too frequent words
• Stemming – reduce stems to dictionary words
• Synonyms – replace synonyms with root words in the list
• Resolve abbreviations and acronyms
Sentiment Analysis Workflow
Content Retrieval
Content Extraction
Corpus Generation
Corpus Transformation
Corpus Filtering
Sentiment Calculation
WebDataRetrievalCorpusPre
Processing
Sentiment
Analysis
Sentiment Indicators
• 𝑝𝑜𝑙𝑎𝑟𝑖𝑡𝑦 =
𝑝−𝑛
𝑝+𝑛
• 𝑠𝑢𝑏𝑗𝑒𝑐𝑡𝑖𝑣𝑖𝑡𝑦 =
𝑝+𝑛
𝑁
• 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒 𝑠𝑒𝑡𝑛𝑖𝑚𝑒𝑛𝑡𝑠 𝑝𝑒𝑟 𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒 =
𝑝
𝑁
• 𝑛𝑒𝑔𝑎𝑡𝑖𝑣𝑒 𝑠𝑒𝑡𝑛𝑖𝑚𝑒𝑛𝑡𝑠 𝑝𝑒𝑟 𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒 =
𝑛
𝑁
• 𝑠𝑒𝑡𝑛𝑖𝑚𝑒𝑛𝑡 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒𝑠 𝑝𝑒𝑟 𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒 =
𝑝 − 𝑛
𝑁

More Related Content

What's hot

Probabilistic information retrieval models & systems
Probabilistic information retrieval models & systemsProbabilistic information retrieval models & systems
Probabilistic information retrieval models & systems
Selman Bozkır
 
Model of information retrieval (3)
Model  of information retrieval (3)Model  of information retrieval (3)
Model of information retrieval (3)
9866825059
 
Automatic indexing
Automatic indexingAutomatic indexing
Automatic indexing
dhatchayaninandu
 
Information Retrieval-4(inverted index_&_query handling)
Information Retrieval-4(inverted index_&_query handling)Information Retrieval-4(inverted index_&_query handling)
Information Retrieval-4(inverted index_&_query handling)
Jeet Das
 
Introduction to Information Retrieval
Introduction to Information RetrievalIntroduction to Information Retrieval
Introduction to Information Retrieval
Carsten Eickhoff
 
Inverted index
Inverted indexInverted index
Inverted index
Krishna Gehlot
 
Probabilistic retrieval model
Probabilistic retrieval modelProbabilistic retrieval model
Probabilistic retrieval model
baradhimarch81
 
Information retrieval 14 fuzzy set models of ir
Information retrieval 14 fuzzy set models of irInformation retrieval 14 fuzzy set models of ir
Information retrieval 14 fuzzy set models of ir
Vaibhav Khanna
 
Lec1,2
Lec1,2Lec1,2
Lec1,2
alaa223
 
Information retrieval 10 vector and probabilistic models
Information retrieval 10 vector and probabilistic modelsInformation retrieval 10 vector and probabilistic models
Information retrieval 10 vector and probabilistic models
Vaibhav Khanna
 
WEB BASED INFORMATION RETRIEVAL SYSTEM
WEB BASED INFORMATION RETRIEVAL SYSTEMWEB BASED INFORMATION RETRIEVAL SYSTEM
WEB BASED INFORMATION RETRIEVAL SYSTEM
Sai Kumar Ale
 
Boolean,vector space retrieval Models
Boolean,vector space retrieval Models Boolean,vector space retrieval Models
Boolean,vector space retrieval Models
Primya Tamil
 
Vector space model of information retrieval
Vector space model of information retrievalVector space model of information retrieval
Vector space model of information retrieval
Nanthini Dominique
 
Text mining
Text miningText mining
Text mining
ThejeswiniChivukula
 
Information retrieval introduction
Information retrieval introductionInformation retrieval introduction
Information retrieval introduction
nimmyjans4
 
4.3 multimedia datamining
4.3 multimedia datamining4.3 multimedia datamining
4.3 multimedia datamining
Krish_ver2
 
Multimedia Information Retrieval
Multimedia Information RetrievalMultimedia Information Retrieval
Multimedia Information Retrieval
Stephane Marchand-Maillet
 
Pagerank Algorithm Explained
Pagerank Algorithm ExplainedPagerank Algorithm Explained
Pagerank Algorithm Explained
jdhaar
 
Text Mining
Text MiningText Mining
Text Mining
Biniam Asnake
 
Recommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filteringRecommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filtering
Viet-Trung TRAN
 

What's hot (20)

Probabilistic information retrieval models & systems
Probabilistic information retrieval models & systemsProbabilistic information retrieval models & systems
Probabilistic information retrieval models & systems
 
Model of information retrieval (3)
Model  of information retrieval (3)Model  of information retrieval (3)
Model of information retrieval (3)
 
Automatic indexing
Automatic indexingAutomatic indexing
Automatic indexing
 
Information Retrieval-4(inverted index_&_query handling)
Information Retrieval-4(inverted index_&_query handling)Information Retrieval-4(inverted index_&_query handling)
Information Retrieval-4(inverted index_&_query handling)
 
Introduction to Information Retrieval
Introduction to Information RetrievalIntroduction to Information Retrieval
Introduction to Information Retrieval
 
Inverted index
Inverted indexInverted index
Inverted index
 
Probabilistic retrieval model
Probabilistic retrieval modelProbabilistic retrieval model
Probabilistic retrieval model
 
Information retrieval 14 fuzzy set models of ir
Information retrieval 14 fuzzy set models of irInformation retrieval 14 fuzzy set models of ir
Information retrieval 14 fuzzy set models of ir
 
Lec1,2
Lec1,2Lec1,2
Lec1,2
 
Information retrieval 10 vector and probabilistic models
Information retrieval 10 vector and probabilistic modelsInformation retrieval 10 vector and probabilistic models
Information retrieval 10 vector and probabilistic models
 
WEB BASED INFORMATION RETRIEVAL SYSTEM
WEB BASED INFORMATION RETRIEVAL SYSTEMWEB BASED INFORMATION RETRIEVAL SYSTEM
WEB BASED INFORMATION RETRIEVAL SYSTEM
 
Boolean,vector space retrieval Models
Boolean,vector space retrieval Models Boolean,vector space retrieval Models
Boolean,vector space retrieval Models
 
Vector space model of information retrieval
Vector space model of information retrievalVector space model of information retrieval
Vector space model of information retrieval
 
Text mining
Text miningText mining
Text mining
 
Information retrieval introduction
Information retrieval introductionInformation retrieval introduction
Information retrieval introduction
 
4.3 multimedia datamining
4.3 multimedia datamining4.3 multimedia datamining
4.3 multimedia datamining
 
Multimedia Information Retrieval
Multimedia Information RetrievalMultimedia Information Retrieval
Multimedia Information Retrieval
 
Pagerank Algorithm Explained
Pagerank Algorithm ExplainedPagerank Algorithm Explained
Pagerank Algorithm Explained
 
Text Mining
Text MiningText Mining
Text Mining
 
Recommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filteringRecommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filtering
 

Viewers also liked

Textmining Introduction
Textmining IntroductionTextmining Introduction
Textmining Introduction
Datamining Tools
 
Text mining
Text miningText mining
Text mining
Ali A Jalil
 
Big Data & Text Mining
Big Data & Text MiningBig Data & Text Mining
Big Data & Text Mining
Michel Bruley
 
Introduction to text mining
Introduction to text miningIntroduction to text mining
Introduction to text mining
Lars Juhl Jensen
 
Text data mining1
Text data mining1Text data mining1
Text data mining1
KU Leuven
 
Text mining tutorial
Text mining tutorialText mining tutorial
Text mining tutorial
Salford Systems
 
Elements of Text Mining Part - I
Elements of Text Mining Part - IElements of Text Mining Part - I
Elements of Text Mining Part - I
Jaganadh Gopinadhan
 
Quick Tour of Text Mining
Quick Tour of Text MiningQuick Tour of Text Mining
Quick Tour of Text Mining
Yi-Shin Chen
 
Data mining slides
Data mining slidesData mining slides
Data mining slides
smj
 
Data mining
Data miningData mining
Data mining
Akannsha Totewar
 
Text Mining with R -- an Analysis of Twitter Data
Text Mining with R -- an Analysis of Twitter DataText Mining with R -- an Analysis of Twitter Data
Text Mining with R -- an Analysis of Twitter Data
Yanchang Zhao
 
A Survey on the Classification Techniques In Educational Data Mining
A Survey on the Classification Techniques In Educational Data MiningA Survey on the Classification Techniques In Educational Data Mining
A Survey on the Classification Techniques In Educational Data Mining
Editor IJCATR
 
Text mining and data mining
Text mining and data mining Text mining and data mining
Text mining and data mining
Bhawi247
 
Data Acquisition for Sentiment Analysis
Data Acquisition for Sentiment AnalysisData Acquisition for Sentiment Analysis
Data Acquisition for Sentiment Analysis
Ali BELCAID
 
Tesxt mining
Tesxt miningTesxt mining
Tesxt mining
Maurice Masih
 
Rares Songs
Rares SongsRares Songs
Text Mining in Jeb Bush’s Email and Social Network
Text Mining in Jeb Bush’s Email and Social NetworkText Mining in Jeb Bush’s Email and Social Network
Text Mining in Jeb Bush’s Email and Social Network
Yi Chun (Nancy) Chien
 
Text mining the contributors to rail accidents
Text mining the contributors to rail accidentsText mining the contributors to rail accidents
Text mining the contributors to rail accidents
Finalyearprojects Toall
 
Text mining, By Hadi Mohammadzadeh
Text mining, By Hadi MohammadzadehText mining, By Hadi Mohammadzadeh
Text mining, By Hadi Mohammadzadeh
Hadi Mohammadzadeh
 
Data Mining and Text Mining in Educational Research
Data Mining and Text Mining in Educational ResearchData Mining and Text Mining in Educational Research
Data Mining and Text Mining in Educational Research
Qiang Hao
 

Viewers also liked (20)

Textmining Introduction
Textmining IntroductionTextmining Introduction
Textmining Introduction
 
Text mining
Text miningText mining
Text mining
 
Big Data & Text Mining
Big Data & Text MiningBig Data & Text Mining
Big Data & Text Mining
 
Introduction to text mining
Introduction to text miningIntroduction to text mining
Introduction to text mining
 
Text data mining1
Text data mining1Text data mining1
Text data mining1
 
Text mining tutorial
Text mining tutorialText mining tutorial
Text mining tutorial
 
Elements of Text Mining Part - I
Elements of Text Mining Part - IElements of Text Mining Part - I
Elements of Text Mining Part - I
 
Quick Tour of Text Mining
Quick Tour of Text MiningQuick Tour of Text Mining
Quick Tour of Text Mining
 
Data mining slides
Data mining slidesData mining slides
Data mining slides
 
Data mining
Data miningData mining
Data mining
 
Text Mining with R -- an Analysis of Twitter Data
Text Mining with R -- an Analysis of Twitter DataText Mining with R -- an Analysis of Twitter Data
Text Mining with R -- an Analysis of Twitter Data
 
A Survey on the Classification Techniques In Educational Data Mining
A Survey on the Classification Techniques In Educational Data MiningA Survey on the Classification Techniques In Educational Data Mining
A Survey on the Classification Techniques In Educational Data Mining
 
Text mining and data mining
Text mining and data mining Text mining and data mining
Text mining and data mining
 
Data Acquisition for Sentiment Analysis
Data Acquisition for Sentiment AnalysisData Acquisition for Sentiment Analysis
Data Acquisition for Sentiment Analysis
 
Tesxt mining
Tesxt miningTesxt mining
Tesxt mining
 
Rares Songs
Rares SongsRares Songs
Rares Songs
 
Text Mining in Jeb Bush’s Email and Social Network
Text Mining in Jeb Bush’s Email and Social NetworkText Mining in Jeb Bush’s Email and Social Network
Text Mining in Jeb Bush’s Email and Social Network
 
Text mining the contributors to rail accidents
Text mining the contributors to rail accidentsText mining the contributors to rail accidents
Text mining the contributors to rail accidents
 
Text mining, By Hadi Mohammadzadeh
Text mining, By Hadi MohammadzadehText mining, By Hadi Mohammadzadeh
Text mining, By Hadi Mohammadzadeh
 
Data Mining and Text Mining in Educational Research
Data Mining and Text Mining in Educational ResearchData Mining and Text Mining in Educational Research
Data Mining and Text Mining in Educational Research
 

Similar to 3. introduction to text mining

2_text operationinformation retrieval. ppt
2_text operationinformation retrieval. ppt2_text operationinformation retrieval. ppt
2_text operationinformation retrieval. ppt
HayomeTakele
 
Introduction to natural language processing (NLP)
Introduction to natural language processing (NLP)Introduction to natural language processing (NLP)
Introduction to natural language processing (NLP)
Alia Hamwi
 
Skills and language objectives crwe feb 9 2020
Skills and language objectives crwe feb 9 2020Skills and language objectives crwe feb 9 2020
Skills and language objectives crwe feb 9 2020
RJWilks
 
NLP WITH NAÏVE BAYES CLASSIFIER (1).pptx
NLP WITH NAÏVE BAYES CLASSIFIER (1).pptxNLP WITH NAÏVE BAYES CLASSIFIER (1).pptx
NLP WITH NAÏVE BAYES CLASSIFIER (1).pptx
rohithprabhas1
 
Finding information
Finding informationFinding information
Finding information
Fiona Beals
 
Sld-Natural-Language-Processing-for-large-volumes-of-human-text-data-Sozzi-Br...
Sld-Natural-Language-Processing-for-large-volumes-of-human-text-data-Sozzi-Br...Sld-Natural-Language-Processing-for-large-volumes-of-human-text-data-Sozzi-Br...
Sld-Natural-Language-Processing-for-large-volumes-of-human-text-data-Sozzi-Br...
hajinouha0
 
Engineering Intelligent NLP Applications Using Deep Learning – Part 1
Engineering Intelligent NLP Applications Using Deep Learning – Part 1Engineering Intelligent NLP Applications Using Deep Learning – Part 1
Engineering Intelligent NLP Applications Using Deep Learning – Part 1
Saurabh Kaushik
 
Text Mining
Text MiningText Mining
Text Mining
sathish sak
 
NLP_KASHK:Text Normalization
NLP_KASHK:Text NormalizationNLP_KASHK:Text Normalization
NLP_KASHK:Text Normalization
Hemantha Kulathilake
 
Esl weinstock spring 2014 libguide
Esl  weinstock spring 2014 libguideEsl  weinstock spring 2014 libguide
Esl weinstock spring 2014 libguide
pachtmar
 
Natural Language Processing Crash Course
Natural Language Processing Crash CourseNatural Language Processing Crash Course
Natural Language Processing Crash Course
Charlie Greenbacker
 
IR
IRIR
Intro 2 document
Intro 2 documentIntro 2 document
Intro 2 document
Uma Kant
 
DHUG 2017 - Thesaurus Construction Training
DHUG 2017 - Thesaurus Construction TrainingDHUG 2017 - Thesaurus Construction Training
DHUG 2017 - Thesaurus Construction Training
Access Innovations, Inc.
 
Natural language processing (nlp)
Natural language processing (nlp)Natural language processing (nlp)
Natural language processing (nlp)
Kuppusamy P
 
Textmining
TextminingTextmining
Textmining
sidhunileshwar
 
Natural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptxNatural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptx
SHIBDASDUTTA
 
Riyadh UseR Group - 1st Meeting (Dec 2016(
Riyadh UseR Group - 1st Meeting (Dec 2016(Riyadh UseR Group - 1st Meeting (Dec 2016(
Riyadh UseR Group - 1st Meeting (Dec 2016(
Ali Arsalan Kazmi
 
NLTK
NLTKNLTK
Intro
IntroIntro

Similar to 3. introduction to text mining (20)

2_text operationinformation retrieval. ppt
2_text operationinformation retrieval. ppt2_text operationinformation retrieval. ppt
2_text operationinformation retrieval. ppt
 
Introduction to natural language processing (NLP)
Introduction to natural language processing (NLP)Introduction to natural language processing (NLP)
Introduction to natural language processing (NLP)
 
Skills and language objectives crwe feb 9 2020
Skills and language objectives crwe feb 9 2020Skills and language objectives crwe feb 9 2020
Skills and language objectives crwe feb 9 2020
 
NLP WITH NAÏVE BAYES CLASSIFIER (1).pptx
NLP WITH NAÏVE BAYES CLASSIFIER (1).pptxNLP WITH NAÏVE BAYES CLASSIFIER (1).pptx
NLP WITH NAÏVE BAYES CLASSIFIER (1).pptx
 
Finding information
Finding informationFinding information
Finding information
 
Sld-Natural-Language-Processing-for-large-volumes-of-human-text-data-Sozzi-Br...
Sld-Natural-Language-Processing-for-large-volumes-of-human-text-data-Sozzi-Br...Sld-Natural-Language-Processing-for-large-volumes-of-human-text-data-Sozzi-Br...
Sld-Natural-Language-Processing-for-large-volumes-of-human-text-data-Sozzi-Br...
 
Engineering Intelligent NLP Applications Using Deep Learning – Part 1
Engineering Intelligent NLP Applications Using Deep Learning – Part 1Engineering Intelligent NLP Applications Using Deep Learning – Part 1
Engineering Intelligent NLP Applications Using Deep Learning – Part 1
 
Text Mining
Text MiningText Mining
Text Mining
 
NLP_KASHK:Text Normalization
NLP_KASHK:Text NormalizationNLP_KASHK:Text Normalization
NLP_KASHK:Text Normalization
 
Esl weinstock spring 2014 libguide
Esl  weinstock spring 2014 libguideEsl  weinstock spring 2014 libguide
Esl weinstock spring 2014 libguide
 
Natural Language Processing Crash Course
Natural Language Processing Crash CourseNatural Language Processing Crash Course
Natural Language Processing Crash Course
 
IR
IRIR
IR
 
Intro 2 document
Intro 2 documentIntro 2 document
Intro 2 document
 
DHUG 2017 - Thesaurus Construction Training
DHUG 2017 - Thesaurus Construction TrainingDHUG 2017 - Thesaurus Construction Training
DHUG 2017 - Thesaurus Construction Training
 
Natural language processing (nlp)
Natural language processing (nlp)Natural language processing (nlp)
Natural language processing (nlp)
 
Textmining
TextminingTextmining
Textmining
 
Natural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptxNatural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptx
 
Riyadh UseR Group - 1st Meeting (Dec 2016(
Riyadh UseR Group - 1st Meeting (Dec 2016(Riyadh UseR Group - 1st Meeting (Dec 2016(
Riyadh UseR Group - 1st Meeting (Dec 2016(
 
NLTK
NLTKNLTK
NLTK
 
Intro
IntroIntro
Intro
 

Recently uploaded

一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
74nqk8xf
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
Timothy Spann
 
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
v7oacc3l
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
soxrziqu
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
jerlynmaetalle
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
Sm321
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
vikram sood
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
jitskeb
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
kuntobimo2016
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
nuttdpt
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
nuttdpt
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
74nqk8xf
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
sameer shah
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
g4dpvqap0
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
bopyb
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
Walaa Eldin Moustafa
 

Recently uploaded (20)

一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
 
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
 

3. introduction to text mining

  • 2. Agenda • Defining Text Mining • Structured vs. Unstructured Data • Why Text Mining • Some Text Mining Ambiguities • Pre-processing the Text
  • 3. Text Mining • The discovery by computer of new, previously unknown information, by automatically extracting information from a usually large amount of different unstructured textual resources Previously unknown means: • Discovering genuinely new information • Discovering new knowledge vs. merely finding patterns is like the difference between a detective following clues to find the criminal vs. analysts looking at crime statistics to assess overall trends in car theft Unstructured means: • Free naturally occurring text • As opposed HTML, XML….
  • 4. Text Mining Vs. Data Mining • Data in Data mining is a series of numbers. Data for text mining is a collection of documents. • Data mining methods see data in spreadsheet format. Text mining methods see data in document format
  • 5. Structured vs. Unstructured Data • Structured data • Loadable into “spreadsheets” • Arranged into rows and columns • Each cell filled or could be filled • Data mining friendly • Unstructured daa • Microsoft Word, HTML, PDF documents, PPTs • Usually converted into XML  semi structured • Not structured into cells • Variable record length, notes, free form survey-answers • Text is relatively sparse, inconsistent and not uniform • Also images, video, music etc.
  • 6. Why Text Mining? • Leveraging text should improve decisions and predictions • Text mining is gaining momentum • Sentiment analysis (twitter, facebook) • Predicting stock market • Predicting churn • Customer influence • Customer service and help desk • Not to mention Watson
  • 7. Why Text Mining is Hard? • Language is ambiguous • Context is needed to clarify • The same words can have different meaning (homographs) • Bear (verb) – to support or carry • Bear (noun) – a large animal • Different words can mean the same (synonyms) • Language is subtle • Concept / word extraction usually results in huge number of dimensions • Thousands of new fields • Each field typically has low information content (sparse) • Misspellings, abbreviations, spelling variants • Renders search engines, SQL queries.. ineffective.
  • 8. Some Text Mining Ambiguities • Homonomy: same word, different meaning • Mary walked along the bank of the river • HarborBank is the richest bank in the citys • Synonymy: Synonyms, different words, similar or same meaning, can substitute one word for other without changing meaning • Miss Nelson became a kind of big sister to Benjamin • Miss Nelson became a kind of large sister to Benjamin • Polysemy: same word or form, but different, albeit related meaning • The bank raised its interest rates yesterday • The store is next to the newly constructed bank • The bank appeared first in Italy I the Renaissance • Hyponymy: Concept hierarchy or subclass • Animal (noun) – cat, dog • Injury – broken leg, intusion
  • 9. Seven Types of Text Mining • Search and Information Retrieval – storage and retrieval of text documents, including search engines and keyword search • Document Clustering – Grouping and categorizing terms, snippets, paragraphs or documents using clustering methods • Document Classification – grouping and categorizing snippets, paragraphs or document using data mining classification methods, based on methods trained on labelled examples • Web Mining – Data and Text mining on the internet with specific focus on scaled and interconnectedness of the web • Information Extraction – Identification and extraction of relevant facts and relationships from unstructured text • Natural Language Processing – Low level language processing and understanding of tasks (eg. Tagging part of speech) • Concept extraction – Grouping of words and phrases into semantically similar groups
  • 10. Text Mining – Some Definitions • Document – a sequence of words and punctuation, following the grammatical rules of the language. • Term – usually a word, but can be a word-pair or phrase • Corpus – a collection of documents • Lexicon – set of all unique words in corpus
  • 11. Pre-processing the Text • Text Normalization • Parts of Speech Tagging • Removal of stop words Stop words – common words that don’t add meaningful content to the document • Stemming • Removing suffices and prefixes leaving the root or stem of the word. • Term weighting • POS Tagging • Tokenization
  • 12. Text Normalization • Case • Make all lower case (if you don’t care about proper nouns, titles, etc) • Clean up transcription and typing errrors • do n’t, movei • Correct misspelled words • Phonetically • Use fuzzy matching algorithms such as Soundex, Metaphone or string edit distance • Dictionaries • Use POS and context to make good guess
  • 13. Parts of Speech Tagging • Useful for recognizing names of people, places, organizations, titles • English language • Minimum set includes noun, verb, adjective, adverb, prepositions, congjunctions POS Tags from Penn Tree Bank Tag Description Tag Description Tag Description CC Coordinating Conjunction CD Cardinal Number DT Determiner EX Existential there FW Foreign Word IN Preposition or subordinating conjuction JJ Adjective JJR Adjective, comparative JJS Adjective, superlative LS List Item Marker MD Modal NN Noun, singular or mass NNS Noun Plural NNPS Proper Noun Plural PDT Prederminer POS Possessive Ending PRP Personal pronoun PRPS Possessive pronoun RB Adverb RBR Adverb, comparative RBS Adverb, superlative RP Particle SYM Symbol TO To UH Interjection VB Verb, base form VBD Verb, past tens
  • 14. Example of Tagging • In this talk, Mr. Pole discussed how Target was using Predictive Analytics including descriptions of using potential value models, coupon models, and yes predicting when a woman is due • In/IN this/DT talk/NN, Mr./NNP Pole/NNP discussed/VBD how/WRB Target/NNP was/VBD using/VBG Predictive/NNP Analytics/NNP including/VBG descriptions/NNS of/IN using/VBG potential/JJ value/NN models/NNS, coupon/NN models/NNS, and yes predicting/VBG when/WRB a/DT woman/NN is due/JJ
  • 15. Tokenization • Converts streams of characters into words • Main clues (in English): Whitespace • No single algorithms ‘works’ always • Some languages do not have white space (Chinese, Japanese)
  • 16. Stemming • Normalizes / unifies variations of the same data • ‘walking’, ‘walks’, ‘walked’, ‘walked’  walk • Inflectional stemming • Remove plurals • Normalize verb tenses • Remove other affixes • Stemming to root • Reduce word to most basic element • More aggressive than inflectional • ‘denormalization’  norm • ‘Apply’, ‘applications’, ‘reapplied’  apply
  • 17. Common English Stop Words • a, an, and, are, as, at, be, but, buy, for, if, in, into, is, it, no, not, of, on, or, such, that, the, their, then, these, they, this, to, was, will, with • Stop words are very common and rarely provide useful information for information extraction and concept extraction • Removing stop words also reduce dimensionality
  • 18. Dictionaries and Lexicons • Highly recommended, can be very time consuming • Reduces set of key words to focus on • Words of interest • Dictionary words • Increase set of keywords to focus on • Proper nouns • Acronyms • Titles • Numbers • Key ways to use dictionary • Local dictionary (specialized words) • Stop words and too frequent words • Stemming – reduce stems to dictionary words • Synonyms – replace synonyms with root words in the list • Resolve abbreviations and acronyms
  • 19. Sentiment Analysis Workflow Content Retrieval Content Extraction Corpus Generation Corpus Transformation Corpus Filtering Sentiment Calculation WebDataRetrievalCorpusPre Processing Sentiment Analysis
  • 20. Sentiment Indicators • 𝑝𝑜𝑙𝑎𝑟𝑖𝑡𝑦 = 𝑝−𝑛 𝑝+𝑛 • 𝑠𝑢𝑏𝑗𝑒𝑐𝑡𝑖𝑣𝑖𝑡𝑦 = 𝑝+𝑛 𝑁 • 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒 𝑠𝑒𝑡𝑛𝑖𝑚𝑒𝑛𝑡𝑠 𝑝𝑒𝑟 𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒 = 𝑝 𝑁 • 𝑛𝑒𝑔𝑎𝑡𝑖𝑣𝑒 𝑠𝑒𝑡𝑛𝑖𝑚𝑒𝑛𝑡𝑠 𝑝𝑒𝑟 𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒 = 𝑛 𝑁 • 𝑠𝑒𝑡𝑛𝑖𝑚𝑒𝑛𝑡 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒𝑠 𝑝𝑒𝑟 𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒 = 𝑝 − 𝑛 𝑁