Tf-Idf and Cosine similarity

Seeking Wisdom

In the year 1998 Google handled 9800 average search queries every day. In 2012 this number shot up to 5.13 billion average searches per day. The graph given below shows this astronomical growth.

Year Average Search per day
1998 9800
2000 60000000
2007 1200000000
2008 1745000000
2009 2610000000
2010 3627000000
2011 4717000000
2012 5134000000

googlesearchperday

The major reason for google’s success is because of its pageRank algorithm. PageRank determines how trustworthy and reputable a given website is. But there is also another part. The input query entered by the user should be used to match the relevant documents and score them. In this post I will focus on the second part. I have created 3 documents to show how this works. Take some time to go through them.

Document 1: The game of life is a game of everlasting learning
Document 2: The unexamined life is not worth living

View original post 1,226 more words

Random musings

So glad to be back here.

I think I like writing. Just putting the crap in your mind down on a screen/paper and feel the burden lessening. It’s such an example of the surety we all want that comes with talking to some one intimately.

I must think of good ideas for the short story competition. 

18 Struggles Only Over-Thinkers Will Understand

Story of my lifeee:

Thought Catalog

1. Your need to find meaning in everything usually culminates into crafting conspiracy theories about what the period placement in a text means.

2. You end up making every situation in your life about 100x more difficult than it has to be.

3. You cannot let anything go, because you’re convinced that if you just run over the details a few more times, you’ll finally uncover some new understanding of the situation or it will somehow change the outcome.

4. You’ve probably never been sure about a thing in your life. You’ve approached everything from choosing a school and a partner to your outfit in the morning and brand of bread at the grocery store with equal levels of angst.

5. You could get a Master’s degree in interpreting what the song lyrics people post really mean.

6. Though your critical thinking skills are pretty on point, the toughest reality you’ve had…

View original post 429 more words

Random

so like people keep telling me to watch this, read that, I’m finally going to compile all they’ve asked me to watch. And keep re-editing it to add on.

// Ignore everything that is below this line #ProgrammerJoke

Seasons/series to catch up on in the hols: Dr. Who, Breaking Bad, Dexter, Supernatural, Community.

Musicians/Bands: Elvis Presley, Aretha Franklin, Cat Stevens, Sigur Ros, Soley, more ghazals, undiscovered Junoon and Vital Signs. (try listening to NFAK or Abida Parveen..) 

must definitely see the old PTV dramas and vintage Lollywood movies. (Is YouTube ever coming back?)

Books: How it happened, a-book-about-an-old-man-jumping-to-his-death,Return of the King (by William Dalrymple, not LOTR),  Vintage Cowasjee (</3), Faiz translated. 

 

Nayyara Noor – Classic Renditions

Music & Lyrics

Nayyara Noor is a Ghazal singer more identified with tragic or sad Ghazals. She has sung some classic poetry on the soundtrack of the evergreen TV series “Dhoop Kinare”.

nayyaranoor1

Raat Youn Dil Mein Teri


raat yuuN dil meN terii khoyii hu’ii yaad aayii
jaise viiraane meN chupke se bahaar aa jaaye
jaise sehraaoN meN hauley se chale baad-e-nasiim
jaise biimaar ko be-vajh qaraar aa jaaye

Last night your faded memory came to me
As in the wilderness spring comes quietly
As, slowly, in the desert, moves the breeze
As, to a sick man, without cause, comes peace

200px-rahat_kazmi_in_dhoop_kinare

Poet : Faiz Ahmad Faiz
Music : Arshad Mehmood
Soundtrack : Dhoop Kinare
Translation : Vikram Seth

An instant classic and perhaps Faiz’s best known Sher. It was used by Shammi Kapoor to woo Rajshree during his Yahoo days in one of his hits – Janwar.

Aaj Baazaar Mein

aaj baazaar meN paa-bajaulaaN…

View original post 368 more words