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

BasicPassage.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 _BASICPASSAGE_HPP
00013 #define _BASICPASSAGE_HPP
00014 
00015 #include <iomanip>
00016 #include <vector>
00017 #include <string>
00018 #include "Passage.hpp"
00019 using std::vector;
00020 using std::string;
00021 
00022 namespace lemur
00023 {
00025   namespace summarization
00026   {
00027     
00033     class BasicPassage : public Passage {
00034 
00035     public:
00036       BasicPassage(const string &id) {
00037         docID = id;
00038         score = -1;
00039         marked = 0;
00040       } 
00041       
00042       virtual void clear() ;
00043 
00044       virtual void addTerm(termCount term) ;
00045 
00046       virtual void addTerms(const passageVec pv) ;
00047 
00048       virtual const passageVec* getAsVector(void) const ;
00049 
00050       virtual int operator<(const Passage &b) const ;
00051 
00052     };
00053   }
00054 }
00055 
00056 #endif

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