org.apache.nutch.summary.lucene
Class LuceneSummarizer
java.lang.Object
org.apache.nutch.summary.lucene.LuceneSummarizer
- All Implemented Interfaces:
- Configurable, Pluggable, Summarizer
public class LuceneSummarizer
- 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 |
LuceneSummarizer
public LuceneSummarizer()
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.
Copyright © 2006 The Apache Software Foundation