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 #ifndef _DISTMERGEMETHOD_HPP 00013 #define _DISTMERGEMETHOD_HPP 00014 00023 #include "Param.hpp" 00024 00025 #define CORI_MERGE 0 00026 #define SINGLETYPEREGR_MERGE 1 00027 00028 namespace DistMergeMethodParameter { 00029 00031 00032 static int mergeMethod; 00034 00035 static void get() { 00036 mergeMethod=ParamGetInt("mergeMethod",0); 00037 } 00038 }; 00039 00040 00041 #include "common_headers.hpp" 00042 #include "IndexedReal.hpp" 00043 #include "DocScore.hpp" 00044 00045 class DistMergeMethod { 00046 public: 00047 virtual ~DistMergeMethod() {}; 00048 00050 virtual void mergeScoreSet(IndexedRealVector &indexset, DocScoreVector** scoreset, DocScoreVector &results); 00051 00052 protected: 00054 virtual double score(double dbscore, double docscore)=0; 00055 }; 00056 00057 #endif