Fan of perl and want to use swings of java. Check out this
Complete Article
Java::Swing
%dbm = (
'-1' => 'Doc One',
'-2' => 'Doc Two',
'another' => '-2',
'doc' => '-1-2',
'document' => '-1-2',
'here' => '-2',
'is' => '-1-2',
'one' => '-1',
'this' => '-1',
'two' => '-2'
);
a. Create a list of unique word for each document.
b. Remove the junk words, pronouns like a, and, the etc.
c. Create a vector for each document against the above worklist depending on if the word from list is present in document or not. E.g. [1, 0, 1, 0, 0, 0, 1]
d. Create a vector of a query words and match it against the vector of each document using the cosine formula. And display the list of documents with high value of cosines against some threshold value between (0…..1)
e. Get the implementation from [http://www.perl.com/pub/a/2003/02/19/engine.html]
Blog : EMERGIC.ORG
The past week has been a tough one for Mumbai. First, the rains. Then, Sunday's actions by the Shiv Sena in response to the alleged desecration of a statue of their leader's late wife. Finally, yesterday, the series of bomb blasts.
I was in the car en route to drop a friend to the airport when I heard one of the blasts. It was 100-odd metres away from us as we were passing Matunga station. We did not realise it at that time - the horror of what had happened dawned an hour or so later.
I managed to drop my friend to the airport, and reached home late at night. Mobiles were not working for the most part -- only a couple calls got through. SMSes were long delayed or were simply failing. What was working fine - amazingly - was the mobile internet (via GPRS) on my phone. I sent emails through our mobile mail service to colleagues at work and family at home.
I hate to say it but today's urban life is going to see terror and other bad events happening. One has to live with this reality. The question is how can we best react when these things happen.