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

DocumentCount.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2004 University of Massachusetts.  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 // DocumentCount
00014 // 
00015 // 24 September 2004 -- tds
00016 //
00017 
00018 #ifndef INDRI_DOCUMENTCOUNT_HPP
00019 #define INDRI_DOCUMENTCOUNT_HPP
00020 namespace indri
00021 {
00022   namespace index
00023   {
00024     
00025     struct DocumentCount {
00026       DocumentCount() {}
00027 
00028       DocumentCount( lemur::api::DOCID_T document, int count ) {
00029         this->document = document;
00030         this->count = count;
00031       }
00032 
00033       lemur::api::DOCID_T document;
00034       int count;
00035     };
00036 
00037     struct DocumentContextCount {
00038       DocumentContextCount( lemur::api::DOCID_T document, int count, int contextSize ) {
00039         this->document = document;
00040         this->count = count;
00041         this->contextSize = contextSize;
00042       }
00043 
00044       lemur::api::DOCID_T document;
00045       int count;
00046       int contextSize;
00047     };
00048   }
00049 }
00050 
00051 #endif // INDRI_DOCUMENTCOUNT_HPP

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