4 ms·
I extract it using a pretty clever algorithm then run it through a few things to summarize it. The extraction is nowhere near perfect; it performs best on the
by jeremymcanally 16y ago
I extract it using a pretty clever algorithm then run it through a few things to summarize it. The extraction is nowhere near perfect; it performs best on the major news sites thus far. I didn't really have time to polish it as much as I'd like, but it seems to work well especially on FOXNews and NYTimes (and Blogspot articles).
- SkyMarshal 16y agoCool, thanks for posting, will definitely keep tabs. Good luck with it. Will post mine when i've got a working site.
- bravura 16y agoDo you mind summarizing a bit how you generate snippets? We were discussing this on MetaOptimize recently (http://metaoptimize.com/qa/questions/2815/how-are-search-engine-snippets-generated http://metaoptimize.com/qa/questions/2815/how-are-search-eng...), but I'm curious to hear about alternate approaches.
- deleted 16y ago[deleted]
- nl 16y agoI build a summariser for classifier4j (http://classifier4j.cvs.sourceforge.net/viewvc/classifier4j/newbuild/core/src/java/net/sf/classifier4J/summariser/SimpleSummariser.java?revision=1.6&view=markup http://classifier4j.cvs.sourceforge.net/viewvc/classifier4j/...). It's 5 years old now, but the summaries it generates are competitive quality-wise with most things out there (eg, the MS Word summarizer). Unfortunately I don't have an online demo working atm (like I said - 5 years old) My algorithm is something I made up, and from memory it works like this: 1) Remove HTML, stem, remove stopwords etc 2) Sort unique words by popularity in the text 3) Split the original text on sentence boundaries. 4) Include each sentence that first mentions the next most popular word, until the summary is the maximum length requested. Like most things, it's surprising how well a simple algorithm like that works. There are ports for C#, and Googling just then apparently someone has done a python port too.
- nervechannel 16y agoThe first couple of articles I tried: http://www.sfgate.com/cgi-bin/article.cgi?f=/c/a/2010/10/18/BUJ61FTF9I.DTL http://www.sfgate.com/cgi-bin/article.cgi?f=/c/a/2010/10/18/... http://bstj.bell-labs.com/ http://bstj.bell-labs.com/ suffered from complete content extraction failure. The third one seemed to work pretty well, but there were lots of spurious newlines in the output which made it really hard to read. Nice idea but needs another 48 hours of polish :-)
- nervechannel 16y agoPS I tried both those sfgate and Bell Systems pages through viewtext.org, and that got the content for both just fine. Maybe you could pipe requests through their API: http://viewtext.org/help/api http://viewtext.org/help/api