Docsity

week10......................., Lecture notes of Data Mining

Partial preview of the text

Download week10....................... and more Lecture notes Data Mining in PDF only on Docsity!

Assoc. Prof. Dr. Nurulkamal Masseran Department of Mathematical Sciences Universiti Kebangsaan Malaysia

 Text data is a type of unstructured data.  Computer need to interpret the unstructured data to understand human languages.  Thus, some information can extracted.  This procedure known as a natural language processing (NLP).  Text mining uses NLP techniques to transform unstructured data into a structured format for the purpose of identifying meaningful patterns and extracting information.

 A plain text data need to be converted to a corpus format before a data mining analysis can be done.  A corpus is as a collection of written texts.  Based on corpus format, a data mining analysis, hypothesis testing, checking occurrences or validating linguistic rules can be done on a text data.

 Commonly, unstructured data does not organize in a proper way.  Thus, it is difficult to analyze unstructured data directly from its original form.  Data cleaning on text data is very important task of pre-processing prior to text mining.  Some important steps of data cleaning on text data: i) Remove special characters from the text, where a symbol such as; /, @ and | will be replace by a space. ii) Convert the text to lower case. iii) Remove numbers iv) Remove the stopwords in text data. Example: Stopwords in English are “the, is, at, on”. There is no single universal list of stopwords used by all NLP tools. v) Remove punctuation. vi) Eliminate extra unnecessary spaces in the text.

Example:  Consider the sentence, “I Love my cat”. In tokenization, unique integer value will be assign to each unique word in that sentence.  Such that, 1 to “I”, 2 to “Love”, 3 to “my” and 4 to “cat”.  If we have another sentence: “I Love my car”, then, the words “I Love my”, already have numbers 001 002 003.  Thus, only a new word will be assign a new unique integer value. Here, we have integer 005 is assign for the word “car”.  The tokens of these two sentences are: 001 002 003 004 , 001 002 003 005  Using tokenization, similarity between the sentences can be evaluated.  Intrinsically, a computer does not understand text or language in a human sense.  By tokenization, computer able to transform text from a human- understandable form to a statistical pattern that can be mapped by a data mining technique.

 Text stemming is the process of reducing the word to its root form.

 The stemming simplifies the word to its common origin.

 Stemming is important technique used in NLP to reduces the

number of computations required.

 In a similar vein, stemming is also useful in reducing the

dimensionality of a text data.

 Example: the stemming process reduces the words “fishing”,

“fished” and “fisher” to its stem “fish”.

 The words are different but they actually similar in term of

contextually.

 A word cloud is a visual representation of words.

 Word cloud use the information provided by word frequency table

represented by document-term matrix.

 Word cloud are useful in highlighting the popular words,

keywords and phrases based on the frequency and its relevance

in a text data.

 Based on word cloud visualization, more in-depth analyses can

be carried out.

 The size of each word indicates its frequency in a text data.

 Word association is a technique to

analyzing the behaviors of text data by

determining a significant relationship

between terms.

 This technique compute similarity

among each words in context

documents, after collecting the context

through a bag of words

 Correlation measure is used to

determine how strong a magnitude of

pairs are related.

 Word association can be illustrated

using word similarity chart and word

correlation graph chart.

 However, sentiment analysis cannot tell you why some people

are feeling a certain way.

 In spite of that, sentiment analysis provides an information about

the words associated with strongly positive or negative sentiment.

 This information is being derived by a count of the number of

positive and negative words in the text.

 Then, the analysis will be conducted to characterize this mix of

positive and negative words.

 The sentiment analysis is based on a lexicon text.

 Lexicon refer to a word list.

 In default, some lexicons are already exists.

 However, if your text is having some a specific topic, your lexicon

need to add to or modify in prior to sentiment analysis

 Aggarwal, C. C., Zhai, C. ( 2012 ). Mining Text Data. Springer.  Kwartler, T. ( 2017 ). Text Mining in Practice with R .Wiley.  Lamba, M., Madhusudhan, M. ( 2022 ). Text Mining for Information Professionals: An Uncharted Territory. Springer.  Silge, J., Robinson, D. ( 2017 ). Text Mining with R: : A Tidy Approach. O'Reilly Media, Inc.  Zhai, C., Massung, S. ( 2016 ). Text Data Management and Analysis: A Practical Introduction to Information Retrieval and Text Mining. ACM Books.  Žižka, J., Darena, F., Svoboda, A. ( 2021 ). Text Mining with Machine Learning. CRC Press.  Zong, C., Xia, R., Zhang, J. ( 2021 ). Text Data Mining. Springer.

NEXT TOPIC:

Mining Spatial

Data