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

DocumentRep.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2001 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.cs.cmu.edu/~lemur/license.html
00008  *
00009  *==========================================================================
00010 */
00011 
00012 
00013 #ifndef _DOCUMENTREP_HPP
00014 #define _DOCUMENTREP_HPP
00015 
00016 #include "DocInfoList.hpp"
00017 
00018 //------------------------------------------------------------
00019 //      Abstract Interface for Document Representation 
00020 //------------------------------------------------------------
00021 
00023 
00024 class DocumentRep {
00025 public:
00026   DocumentRep(int docID) : id(docID) {}
00027   virtual ~DocumentRep() {}
00028 
00030   virtual double termWeight(int termID, DocInfo *info) = 0;
00031 
00033   virtual double scoreConstant() = 0 ;
00034 protected:
00035   int id;
00036 };
00037 
00038 
00039 
00040 #endif /* _DOCUMENTREP_HPP */
00041 
00042 
00043 

Generated at Fri Jul 26 18:22:26 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000