









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










The purpose of our study is to conduct a text mining using Weka Tool for text pre- processing, remove stop words, tokenizing data and stemming data. In addition to, we’ve identified distinct keywords, generating document matrix and comparing similarity between documents. For this tutorial, we have used two datasets named diseases and lifestyle. The diseases dataset contains related topics such as Cancer, Diabetes all forms part of disease category. For the unrelated dataset quality, the unrelated topics include health, fashion, transportation, education and entertainment. This report is prepared to analyse the various concepts of text mining whereby we’ve produced results based on methodology used to discover patterns that indicate trends or connections between the datasets.
We’ve created a Diseases dataset that consist of related subtopics such as Cancer, Diabetes, Haemodialysis, Tuberculosis and Pneumonia. These subtopics all form part of the category diseases. The purpose for creating the disease dataset is to improve public health, to prevent illness, and to eliminate threats to physical and mental health. It consists of various factors such as the symptoms and even factors contributing to death. We created five different text files for the diseases and merge them into an .arff format to be loaded in Weka. Below shows our dataset. The relation is named diseases and it has 2 attributes namely text to store the string characters and the other one is named diseases to link to the appropriate text.
calculate it is illustrated below: IDF(t) = log_e(Total number of documents / Number of documents with term t in it) So the IDF for our disease dataset is shown below: Number of documents = 5 Number of documents with term t n it = 1 Log (5/1) = 0.69897000433601880478626110527551 ~ 0.
calculate it is illustrated below: IDF(t) = log_e(Total number of documents / Number of documents with term t in it) So, the IDF for our quality dataset is shown below: Number of documents = 5 Number of documents with term t n it = 2 Log (5/ 2 ) 0.397940008 6720376095725 ~ 0. 398
The diagnostic numeric valued variable is whether the patient shows sign of different diseases according to World Health Organization (WHO) Criteria. The result marks a real valued prediction between 0 and 1. This was transformed into a numeric decision using a cut-off of 0.699. For the unrelated subtopics, the result accuracy appears to a real valued prediction about 60 % between 0 and 1. This was transformed into a numeric decision using a cut-off of 0.398. Overall the analysis produced varying effect size and the five documents of disease dataset found a statistically significant relationship while the quality dataset of unrelated subtopics did not.