org.apache.nutch.searcher
Class Summarizer
java.lang.Object
org.apache.nutch.searcher.Summarizer
- public class Summarizer
- extends Object
Implements hit summarization.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Summarizer
public Summarizer()
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