Suggest - My Hack for TimeIncHack2014
2014-11-20 08:00
Over the weekend of 15-16 Nov, I took part in TimeIncHack2014, organized by Time Inc. The theme was about getting millenials to consume content, but I took off on a tangent right after hearing the problem description by the organizers: instead of building applications or services that media consumers will use, I was interested in making an internal tool for content creators to write articles that are more relevant.
Born out of around 20 hours of hacking (18 of which was while standing), I built Suggest, a tool that analyzes what has been written so far and tries to grab articles that are relevant.
It begins with a simple textarea where you can type (or just copy and paste an article to test it out) into.
It will perform entity recognition on the content, grabbing Nouns, such as people, organizations, places, and list them at the bottom.
When you press the Suggest
button, it will perform a keyword analysis on your content, pull from new sources other articles that are relevant based on the keywords, and show them by the side, under the Relevant
tab.
The Tag
tab suggests articles from Time Inc that are tagged under the same category as what Suggest thinks the current content should be under.
All of the hard work (keyword analysis and entity extraction) is powered by AlchemyAPI, which has a super simple way (and easy to use python sdk) to do all these. Thanks to them for the wonderful work and increasing my API calls limit for the hackathon! The articles are pulled from New York Times, who have a superb restful developers endpoint, and also Time Inc, lovely organizers of this hackathon.
The code is open source, feel free to check it out and throw suggestions at me. For the code to run you basically need to register with AlchemyAPI and New York Times for api keys - which is a super simple process.