Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Summarizer.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2002 Carnegie Mellon University.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.lemurproject.org/license.html
00008  *
00009  *==========================================================================
00010 */
00011 
00012 #ifndef _SUMMARIZER_HPP
00013 #define _SUMMARIZER_HPP
00014 
00015 #include <stdlib.h> 
00016 #include <vector>
00017 #include <string>
00018 #include "Passage.hpp"
00019 
00020 using std::vector;
00021 using std::string;
00022 
00028 class Summarizer {
00029 
00030 public:
00031   virtual ~Summarizer();
00032 
00034   virtual void summDocument(const string &docID, const int optLen, const string &qInfo) = 0;
00035 
00037   virtual void scorePassages(const string &qInfo) = 0;
00038 
00040   virtual void markPassages(int optLen, const string &qInfo) = 0;
00041 
00043   virtual void addPassage(Passage &psg) = 0;
00044 
00046   virtual void clear(void) = 0;
00047 
00049   virtual int fetchPassages(Passage* psgs, int optLen) const = 0;
00050 
00052   virtual int nextPassage(Passage* psg) const = 0;
00053 
00055   virtual void iterClear(void) const = 0;
00056 
00058   virtual void outputSumm(void) const = 0;
00059 
00060 }; // Summarizer
00061 
00062 #endif

Generated on Wed Nov 3 12:59:04 2004 for Lemur Toolkit by doxygen1.2.18