org.apache.nutch.searcher
Class Summarizer

java.lang.Object
  extended byorg.apache.nutch.searcher.Summarizer

public class Summarizer
extends Object

Implements hit summarization.


Constructor Summary
Summarizer()
           
 
Method Summary
 Summary getSummary(String text, Query query)
          Returns a summary for the given pre-tokenized text.
static void main(String[] argv)
          Tests Summary-generation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Summarizer

public Summarizer()
Method Detail

getSummary

public Summary getSummary(String text,
                          Query query)
                   throws IOException
Returns a summary for the given pre-tokenized text.

Throws:
IOException

main

public static void main(String[] argv)
                 throws IOException
Tests Summary-generation. User inputs the name of a text file and a query string

Throws:
IOException


Copyright © 2006 The Apache Software Foundation