Is there any Normalized Google Distance calculator? Is there any appropriate Google Search API to implement NGD in Java?

asked Nov 18 '10 at 19:43

Alex%20Dan's gravatar image

Alex Dan
15111

What is normalized google distance?

(Nov 18 '10 at 20:49) Alexandre Passos ♦
1

It's a way of computing semantic similarity between two concept using the google search engine. See this paper.

(Nov 18 '10 at 21:27) spinxl39

One Answer:

I haven't used this myself, but this might help: http://www2.cs.usfca.edu/~wolber/SoftwareDev/Distributed/WebServices/Google/googleJavaTutorial.htm

I have however used the Python library provided here: http://www.catonmat.net/blog/python-library-for-google-search/ and it's easy to use. This is much better for extracting the total number of results (which is the only thing we need for google distance), because according to this link, google API only gives you the first 32 results (I haven't used the Google API myself, and can't attest the fact... maybe things have changed since the post was written?)

Some equivalent for Java might possibly be available.

answered Nov 19 '10 at 01:39

priya%20venkateshan's gravatar image

priya venkateshan
1646812

Your answer
toggle preview

powered by OSQA

User submitted content is under Creative Commons: Attribution - Share Alike; Other things copyright (C) 2010, MetaOptimize LLC.