News for hackers. Stuff that matters.
Re:Python Library for Google Sets by jamesk2 on Thursday August 13, 2009 @07:03PM (#761946)
This is cool but is there a function for finding hidden topics? i.e. given red, yellow, blue -> colors
Re:Python Library for Google Sets by pkrumins on Thursday August 13, 2009 @07:08PM (#761958)
It doesn't have, and I can't think of an easy way to group them this way. Perhaps I could cook something up, like given "red, yellow, blue", do a Google Search (with my library) for each "red", "yellow", "blue" and find the surrounding words. Then count the frequencies of surrounding words, do another search at Google Sets for "red, yellow, blue", remove all those items from frequency list, and then output the most frequent word. It might be "color" or "colors". Perhaps also de-pluralize the words so that "colors == color". Just a quick idea.

mmm... might actually try it out, if it works, will write an article about it.

Re:Python Library for Google Sets by jamesk2 on Thursday August 13, 2009 @07:47PM (#762011)
That may work but there's going to be so much noise in the population how do you filter it to get "colors?"

There's a google vid on this subject: I never did get through it but it might make more sense to you: http://www.youtube.com/watch?v=vgqWMGT9haY

Re:Python Library for Google Sets by pkrumins on Friday August 14, 2009 @02:30AM (#762499)
Thanks, will watch that one!