Monthly Archives for September 2010

Mr & Mrs Love

Preface: Recently I had small desire to write a short love story. I made some preparations and written a story with good moral. And I Hope you will enjoy it. Mr & Mrs Love It was nice breeze outside; around 7 pm Mr Anbazhagan reached home. His lovely wife Mrs Sujatha Anbazhagan welcomed him by […]

Association Mining

Objective. To use Apriori algorithm to find frequent itemsets using candidate generation and generate association rule from frequent itemsets . Assumption: Consider a transaction table TID List of Item ids T-1 I1,I2,I5 T-2 I2,I4 T-3 I2,I3 T-4 I1,I2,I4 T-5 I1,I3 T-6 I2,I3 T-7 I1,I3 T-8 I1,I2,I3,I5 T-9 I1,I2,I3 T-10 I4,I5 In the first iteration of […]

Latent Semantic Analysis – Part 2

Preface In  Latent Semantic Analysis – Part 1  i have covered procedure for building Term Document Matrix (TDM) as it is a prerequisite for building LSI model . Now lets see how this TDM is supplied to SVD to obtain U , S, and V matrices. Objective To build a Latent Semantic Analysis (LSA) model […]

Latent Semantic Analysis – Part 1

Objective To build a Latent Semantic Analysis (LSA) model to find statistical synonyms of a word from a huge corpus. Preliminary objective of this post is to build Term Document Matrix (TDM) as it is a prerequisite for building LSI model ; So lets first see how to construct TDM. Observation and legends: In order […]

Program code for building TDM

import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; /** * * @author shakthydoss */ public class ReadingMultipleFile {   public static  List keywordList = new  ArrayList();   public static  int [][] countMatrix;   static String path = "E:Colloge  studiesSEM – 7Text MiningAssignmentsAssignment -7Corpus2"; […]

Simple Stemmer implementation in java

Simple stemmer implementation for fining the root word , later which could be used in TDM of LSI model /** * * @author shakthydoss */ public class Mystemmer {     public Mystemmer() {     }     public String ReplaceStem(String word)     {         if(word.toLowerCase().endsWith("."))             return word.replace(word.trim(), word.substring(0, word.length()-1));        else if(word.toLowerCase().endsWith(":"))               return word.replace(word.trim(), […]

List of stop words in English

List of stop words that i have  collect to build LSI Model a about above across after afterwards again against all almost alone along already also although always am among amongst amoungst amount an and another any anyhow anyone anything anyway anywhere are aren’t around as at back be became because become becomes becoming been […]