Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Passage.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 
00013 
00014 #ifndef _PASSAGE_HPP
00015 #define _PASSAGE_HPP
00016 
00017 #include <string>
00018 #include <vector>
00019 using std::vector;
00020 using std::string;
00021 namespace lemur 
00022 {
00023   namespace summarization 
00024   {
00025     
00026     class termCount {
00027     public:
00028       int termID;
00029       int tf;
00030       double val;
00031     };
00032 
00033     typedef vector<termCount> passageVec;
00034 
00040     class Passage {
00041       
00042     public:
00043       double score;
00044       int marked;
00045       string docID;
00046       passageVec psg;
00047 
00048       virtual ~Passage();
00049 
00051       virtual void clear() = 0;
00052 
00054       virtual void addTerm(termCount term) = 0;
00055 
00057       virtual void addTerms(const passageVec pv) = 0;
00058 
00060       virtual const passageVec* getAsVector(void) const = 0;
00061 
00063       virtual int operator<(const Passage &b) const = 0;
00064 
00065     };
00066   }
00067 }
00068 
00069 #endif

Generated on Tue Jun 15 11:02:55 2010 for Lemur by doxygen 1.3.4