Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3975

Document Summarization toolkit, using LSA techniques

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      This package analyzes sentences and words as used across sentences to rank the most important sentences and words. The general topic is called "document summarization" and is a popular research topic in textual analysis.

      How to use:
      1) Check out the 4.x branch, apply the patch, build, and run the solr/example instance.
      2) Download the first Reuters article corpus from:
      http://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz
      3) Unpack this into a directory.
      4) Run the attached 'reuters.sh' script:
      sh reuters.sh directory http://localhost:8983/solr/collection1
      5) Wait several minutes.

      Now go to http://localhost:8983/solr/collection1/browse?summary=true and look at the large gray box marked 'Document Summary'. This has a table of statistics about the analysis, the three most important sentences, and several of the most important words in the documents. The sentences have the important words in italics.

      The code is packaged as a search component and as an analysis handler. The /browse demo uses the search component, and you can also post raw text to http://localhost:8983/solr/collection1/analysis/summary. Here is a sample command:

      curl -s "http://localhost:8983/solr/analysis/summary?indent=true&echoParams=all&file=$FILE&wt=xml" --data-binary @$FILE -H 'Content-type:application/xml'
      

      This is an implementation of LSA-based document summarization. A short explanation and a long evaluation are described in my blog, Uncle Lance's Ultra Whiz Bang, starting here: http://ultrawhizbang.blogspot.com/2012/09/document-summarization-with-lsa-1.html

      Attachments

        1. 4.1.summary.patch
          170 kB
          Lance Norskog
        2. reuters.sh
          0.9 kB
          Lance Norskog

        Activity

          People

            Unassigned Unassigned
            lancenorskog Lance Norskog
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: