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

BeliefNode.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 //
00014 // BeliefNode
00015 // 
00016 // 26 January 2004 -- tds
00017 //
00018 
00019 #ifndef INDRI_BELIEFNODE_HPP
00020 #define INDRI_BELIEFNODE_HPP
00021 
00022 #include "indri/InferenceNetworkNode.hpp"
00023 #include "indri/greedy_vector"
00024 #include "indri/ScoredExtentResult.hpp"
00025 #include <float.h>
00026 
00027 #define INDRI_HUGE_SCORE  ( DBL_MAX )
00028 #define INDRI_TINY_SCORE  ( -DBL_MAX )
00029 namespace indri
00030 {
00031   namespace infnet
00032   {
00033     
00034     class BeliefNode : public InferenceNetworkNode {
00035     protected:
00037       int bSiblings;
00038 
00039     public:
00040       virtual double maximumBackgroundScore() = 0;
00041       virtual double maximumScore() = 0;
00042       virtual const indri::utility::greedy_vector<indri::api::ScoredExtentResult>& score( lemur::api::DOCID_T documentID, indri::index::Extent &extent, int documentLength ) = 0;
00043       virtual bool hasMatch( lemur::api::DOCID_T documentID ) = 0;
00044       virtual const indri::utility::greedy_vector<bool>& hasMatch( lemur::api::DOCID_T documentID, const indri::utility::greedy_vector<indri::index::Extent>& extents ) = 0;
00045       virtual void annotate( class Annotator& annotator, lemur::api::DOCID_T documentID, indri::index::Extent &extent ) = 0;
00046 
00049       virtual void setSiblingsFlag(int f) { bSiblings=f; }
00050     };
00051   }
00052 }
00053 
00054 #endif // INDRI_BELIEFNODE_HPP
00055 

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