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 (20)

PPTX
An Introduction to Document Scanning, Understanding Your Requirements
DocuFi, offering HAI and Infection Prevention Analytics
 
PPTX
Data mining
Birju Tank
 
PPT
data mining
uoitc
 
PPT
3. mining frequent patterns
Azad public school
 
PPT
03 data mining : data warehouse
Institute of Technology Telkom
 
PPTX
Data Analytics Project Presentation
Rohit Vaze
 
PPTX
Introduction to Data Mining
DataminingTools Inc
 
PPTX
Data Mining: What is Data Mining?
Seerat Malik
 
PPT
Introduction to Data Mining
Sushil Kulkarni
 
PPT
Business Intelligence
Hank Lin
 
PPTX
Data Mining: Application and trends in data mining
DataminingTools Inc
 
PPTX
web mining
Arpit Verma
 
PPT
Data Preprocessing
Object-Frontier Software Pvt. Ltd
 
PPTX
Data mining , Knowledge Discovery Process, Classification
Dr. Abdul Ahad Abro
 
PPTX
An introduction to Business intelligence
Hadi Fadlallah
 
PPTX
DATA WAREHOUSING
Rishikese MR
 
DOCX
Example data specifications and info requirements framework OVERVIEW
Alan D. Duncan
 
PPTX
Introduction to data science.pptx
SadhanaParameswaran
 
PPT
Data warehouse
shachibattar
 
PDF
Data Mining and Business Intelligence Tools
Motaz Saad
 
An Introduction to Document Scanning, Understanding Your Requirements
DocuFi, offering HAI and Infection Prevention Analytics
 
Data mining
Birju Tank
 
data mining
uoitc
 
3. mining frequent patterns
Azad public school
 
03 data mining : data warehouse
Institute of Technology Telkom
 
Data Analytics Project Presentation
Rohit Vaze
 
Introduction to Data Mining
DataminingTools Inc
 
Data Mining: What is Data Mining?
Seerat Malik
 
Introduction to Data Mining
Sushil Kulkarni
 
Business Intelligence
Hank Lin
 
Data Mining: Application and trends in data mining
DataminingTools Inc
 
web mining
Arpit Verma
 
Data mining , Knowledge Discovery Process, Classification
Dr. Abdul Ahad Abro
 
An introduction to Business intelligence
Hadi Fadlallah
 
DATA WAREHOUSING
Rishikese MR
 
Example data specifications and info requirements framework OVERVIEW
Alan D. Duncan
 
Introduction to data science.pptx
SadhanaParameswaran
 
Data warehouse
shachibattar
 
Data Mining and Business Intelligence Tools
Motaz Saad
 

Viewers also liked (20)

PPT
Textmining Introduction
Datamining Tools
 
PPT
Big Data & Text Mining
Michel Bruley
 
PPT
Introduction to text mining
Lars Juhl Jensen
 
PPTX
Text data mining1
KU Leuven
 
PPTX
Text mining tutorial
Salford Systems
 
PDF
Elements of Text Mining Part - I
Jaganadh Gopinadhan
 
PPTX
Quick Tour of Text Mining
Yi-Shin Chen
 
PPT
Data mining slides
smj
 
PPTX
Data mining
Akannsha Totewar
 
PDF
Text Mining with R -- an Analysis of Twitter Data
Yanchang Zhao
 
PDF
A Survey on the Classification Techniques In Educational Data Mining
Editor IJCATR
 
PPT
Text mining and data mining
Bhawi247
 
PDF
Data Acquisition for Sentiment Analysis
Ali BELCAID
 
DOCX
Rares Songs
Breannalyn Pearce-Raposa
 
PPTX
Text Mining in Jeb Bush’s Email and Social Network
Yi Chun (Nancy) Chien
 
DOCX
Text mining the contributors to rail accidents
Finalyearprojects Toall
 
PPT
Text mining, By Hadi Mohammadzadeh
Hadi Mohammadzadeh
 
PPTX
Data Mining and Text Mining in Educational Research
Qiang Hao
 
PPTX
High Performance Predictive Analytics in R and Hadoop
DataWorks Summit
 
PPTX
Comment l’intelligence artificielle réinvente la fouille de texte
Antidot
 
Textmining Introduction
Datamining Tools
 
Big Data & Text Mining
Michel Bruley
 
Introduction to text mining
Lars Juhl Jensen
 
Text data mining1
KU Leuven
 
Text mining tutorial
Salford Systems
 
Elements of Text Mining Part - I
Jaganadh Gopinadhan
 
Quick Tour of Text Mining
Yi-Shin Chen
 
Data mining slides
smj
 
Data mining
Akannsha Totewar
 
Text Mining with R -- an Analysis of Twitter Data
Yanchang Zhao
 
A Survey on the Classification Techniques In Educational Data Mining
Editor IJCATR
 
Text mining and data mining
Bhawi247
 
Data Acquisition for Sentiment Analysis
Ali BELCAID
 
Text Mining in Jeb Bush’s Email and Social Network
Yi Chun (Nancy) Chien
 
Text mining the contributors to rail accidents
Finalyearprojects Toall
 
Text mining, By Hadi Mohammadzadeh
Hadi Mohammadzadeh
 
Data Mining and Text Mining in Educational Research
Qiang Hao
 
High Performance Predictive Analytics in R and Hadoop
DataWorks Summit
 
Comment l’intelligence artificielle réinvente la fouille de texte
Antidot
 
Ad

Similar to 3. introduction to text mining (20)

PPT
2_text operationinformation retrieval. ppt
HayomeTakele
 
PDF
learn about text preprocessing nip using nltk
en21cs301047
 
PPTX
Introduction to natural language processing (NLP)
Alia Hamwi
 
PPTX
Collecting and Computerizing Data for Corpus Analyssi
SaidAliKhan5
 
PPT
2_text operatinnjjjjkkkkkkkkkkkkgggggggggggggggggggon.ppt
habtaassefa0
 
PPTX
Skills and language objectives crwe feb 9 2020
RJWilks
 
PPTX
NLP WITH NAÏVE BAYES CLASSIFIER (1).pptx
rohithprabhas1
 
PPT
Finding information
Fiona Beals
 
PPT
Sld-Natural-Language-Processing-for-large-volumes-of-human-text-data-Sozzi-Br...
hajinouha0
 
PPT
CHapter 2_text operation.ppt material for university students
jamsibro140
 
PPTX
NLP Introduction and basics of natural language processing
mailtoahmedhassan
 
PDF
Engineering Intelligent NLP Applications Using Deep Learning – Part 1
Saurabh Kaushik
 
PPT
Text Mining
sathish sak
 
PPTX
4 Natural Language Processing-Text Normalization.pptx
shiks1234
 
PPTX
4 Natural Language Processing-Text Normalization.pptx
shiks1234
 
PPTX
NLP_KASHK:Text Normalization
Hemantha Kulathilake
 
PPTX
Esl weinstock spring 2014 libguide
pachtmar
 
PDF
Natural Language Processing Crash Course
Charlie Greenbacker
 
PPTX
The Art of Language and Writing and Its Importance
DrAmritMitra
 
2_text operationinformation retrieval. ppt
HayomeTakele
 
learn about text preprocessing nip using nltk
en21cs301047
 
Introduction to natural language processing (NLP)
Alia Hamwi
 
Collecting and Computerizing Data for Corpus Analyssi
SaidAliKhan5
 
2_text operatinnjjjjkkkkkkkkkkkkgggggggggggggggggggon.ppt
habtaassefa0
 
Skills and language objectives crwe feb 9 2020
RJWilks
 
NLP WITH NAÏVE BAYES CLASSIFIER (1).pptx
rohithprabhas1
 
Finding information
Fiona Beals
 
Sld-Natural-Language-Processing-for-large-volumes-of-human-text-data-Sozzi-Br...
hajinouha0
 
CHapter 2_text operation.ppt material for university students
jamsibro140
 
NLP Introduction and basics of natural language processing
mailtoahmedhassan
 
Engineering Intelligent NLP Applications Using Deep Learning – Part 1
Saurabh Kaushik
 
Text Mining
sathish sak
 
4 Natural Language Processing-Text Normalization.pptx
shiks1234
 
4 Natural Language Processing-Text Normalization.pptx
shiks1234
 
NLP_KASHK:Text Normalization
Hemantha Kulathilake
 
Esl weinstock spring 2014 libguide
pachtmar
 
Natural Language Processing Crash Course
Charlie Greenbacker
 
The Art of Language and Writing and Its Importance
DrAmritMitra
 
Ad

Recently uploaded (20)

PPT
introdution to python with a very little difficulty
HUZAIFABINABDULLAH
 
PDF
WISE main accomplishments for ISQOLS award July 2025.pdf
StatsCommunications
 
PPTX
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
PDF
apidays Munich 2025 - The Physics of Requirement Sciences Through Application...
apidays
 
PPTX
UVA-Ortho-PPT-Final-1.pptx Data analytics relevant to the top
chinnusindhu1
 
PDF
An Uncut Conversation With Grok | PDF Document
Mike Hydes
 
PPTX
short term project on AI Driven Data Analytics
JMJCollegeComputerde
 
PPTX
7 Easy Ways to Improve Clarity in Your BI Reports
sophiegracewriter
 
PPTX
MR and reffffffvvvvvvvfversal_083605.pptx
manjeshjain
 
PPTX
short term internship project on Data visualization
JMJCollegeComputerde
 
PPT
Real Life Application of Set theory, Relations and Functions
manavparmar205
 
PDF
Classifcation using Machine Learning and deep learning
bhaveshagrawal35
 
PPTX
Probability systematic sampling methods.pptx
PrakashRajput19
 
PPTX
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
PDF
blockchain123456789012345678901234567890
tanvikhunt1003
 
PPTX
Insurance-Analytics-Branch-Dashboard (1).pptx
trivenisapate02
 
PPTX
White Blue Simple Modern Enhancing Sales Strategy Presentation_20250724_21093...
RamNeymarjr
 
PPTX
Data-Driven Machine Learning for Rail Infrastructure Health Monitoring
Sione Palu
 
PPTX
Customer Segmentation: Seeing the Trees and the Forest Simultaneously
Sione Palu
 
PDF
Blitz Campinas - Dia 24 de maio - Piettro.pdf
fabigreek
 
introdution to python with a very little difficulty
HUZAIFABINABDULLAH
 
WISE main accomplishments for ISQOLS award July 2025.pdf
StatsCommunications
 
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
apidays Munich 2025 - The Physics of Requirement Sciences Through Application...
apidays
 
UVA-Ortho-PPT-Final-1.pptx Data analytics relevant to the top
chinnusindhu1
 
An Uncut Conversation With Grok | PDF Document
Mike Hydes
 
short term project on AI Driven Data Analytics
JMJCollegeComputerde
 
7 Easy Ways to Improve Clarity in Your BI Reports
sophiegracewriter
 
MR and reffffffvvvvvvvfversal_083605.pptx
manjeshjain
 
short term internship project on Data visualization
JMJCollegeComputerde
 
Real Life Application of Set theory, Relations and Functions
manavparmar205
 
Classifcation using Machine Learning and deep learning
bhaveshagrawal35
 
Probability systematic sampling methods.pptx
PrakashRajput19
 
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
blockchain123456789012345678901234567890
tanvikhunt1003
 
Insurance-Analytics-Branch-Dashboard (1).pptx
trivenisapate02
 
White Blue Simple Modern Enhancing Sales Strategy Presentation_20250724_21093...
RamNeymarjr
 
Data-Driven Machine Learning for Rail Infrastructure Health Monitoring
Sione Palu
 
Customer Segmentation: Seeing the Trees and the Forest Simultaneously
Sione Palu
 
Blitz Campinas - Dia 24 de maio - Piettro.pdf
fabigreek
 

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 • 𝑝𝑜𝑙𝑎𝑟𝑖𝑡𝑦 = 𝑝−𝑛 𝑝+𝑛 • 𝑠𝑢𝑏𝑗𝑒𝑐𝑡𝑖𝑣𝑖𝑡𝑦 = 𝑝+𝑛 𝑁 • 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒 𝑠𝑒𝑡𝑛𝑖𝑚𝑒𝑛𝑡𝑠 𝑝𝑒𝑟 𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒 = 𝑝 𝑁 • 𝑛𝑒𝑔𝑎𝑡𝑖𝑣𝑒 𝑠𝑒𝑡𝑛𝑖𝑚𝑒𝑛𝑡𝑠 𝑝𝑒𝑟 𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒 = 𝑛 𝑁 • 𝑠𝑒𝑡𝑛𝑖𝑚𝑒𝑛𝑡 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒𝑠 𝑝𝑒𝑟 𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒 = 𝑝 − 𝑛 𝑁