org.apache.nutch.summary.basic
Class BasicSummarizer
java.lang.Object
org.apache.nutch.summary.basic.BasicSummarizer
- All Implemented Interfaces:
- Configurable, Pluggable, Summarizer
public class BasicSummarizer
- extends Object
- implements Summarizer
Implements hit summarization.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicSummarizer
public BasicSummarizer()
getConf
public Configuration getConf()
- Specified by:
getConf
in interface Configurable
setConf
public void setConf(Configuration conf)
- Specified by:
setConf
in interface Configurable
getSummary
public Summary getSummary(String text,
Query query)
- Description copied from interface:
Summarizer
- Get a summary for a specified text.
- Specified by:
getSummary
in interface Summarizer
- Parameters:
text
- is the text to summarize.query
- is the query for which the text is a hit.
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