William J Turkel

Burst Documents for Fine-Grained Matching

March 27, 2011
Labels: Method
Originally published at https://williamjturkel.wordpress.com/2011/03/27/burst-documents/

1
If you are collecting local copies of documents that you haven’t read yet, you need to use computer programs to search through and organize them.  Since all text is OCRed2, it is easy enough to use Spotlight3 to do the searching (or a program like DevonThink: more on this in a future post).  The problem is that it does not do you much good to find out that your search term(s) appear in a book-length document.  If you have a lot of reference books in your local digital archive, you will get many hits for common search terms.  If you have to open each reference and look at each match, you are wasting your time.  Admittedly, it is faster than consulting the index of a paper book and flipping to the relevant section.  The process can be greatly sped up, however.

The trick is to take long PDFs and “burst” them into single pages.  That way, when you search for terms in your local archive, your results are in the form

rather than

The first advantage is that you don’t have to open each individual source (like Big Reference Book) and, in effect, repeat your search to find all instances of your search terms within the document.  The second advantage is that the search algorithm determines the relevance of each particular page to your search terms, rather than the source as a whole.  So the few valuable hits in a long, otherwise irrelevant document are surfaced in a convenient manner.  Sources that are on-topic (like “Interesting Article” in the example above), will show up over and over in your results list.  If you decide you want to read the whole source, you can open the original PDF rather than opening the individual page files.

It is easy enough to write a short script to burst PDFs if you know how to program.  If you don’t, however, you can use an Automator4 workflow to accomplish the same results.  If you’d like, you can even turn your bursting workflow into a droplet5.  I’ve attached a sample workflow to get you started.


Previous: Spider to Collect Sources
Next: Write and Cluster Small Texts
Back to the blog archive

  1. http://www.flickr.com/photos/natsuki/2796343350/ ↩

  2. http://williamjturkel.net/2011/02/27/make-everything-digital/ ↩

  3. http://www.apple.com/macosx/what-is-macosx/spotlight.html ↩

  4. http://www.macosxautomation.com/automator/ ↩

  5. http://macscripter.net/viewtopic.php?id=24775 ↩