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

EvaluatorNode.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 // EvaluatorNode.hpp
00015 //
00016 // 24 February 2004 -- tds
00017 //
00018 
00019 #ifndef INDRI_EVALUATORNODE_HPP
00020 #define INDRI_EVALUATORNODE_HPP
00021 
00022 #include "indri/InferenceNetworkNode.hpp"
00023 #include "indri/ScoredExtentResult.hpp"
00024 #include <string>
00025 #include <vector>
00026 #include <map>
00027 namespace indri 
00028 {
00029   namespace infnet 
00030   {
00031     
00032     class EvaluatorNode : public InferenceNetworkNode {
00033     public:
00034       typedef std::map< std::string, std::vector<indri::api::ScoredExtentResult> > MResults;
00035 
00036       virtual ~EvaluatorNode() {};
00037 
00038       // Called once for every document ID returned by nextCandidateDocument().
00039       // May be called for documents other than those returned by nextCandidateDocument().
00040       virtual void evaluate( lemur::api::DOCID_T documentID, int documentLength ) = 0;
00041       virtual const MResults& getResults() = 0;
00042     };
00043   }
00044 }
00045 
00046 #endif // INDRI_EVALUATORNODE_HPP

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