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

TermScoreFunction.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 // TermScoreFunction
00015 //
00016 // 23 January 2004 -- tds
00017 //
00018 
00019 #ifndef INDRI_TERMSCOREFUNCTION_HPP
00020 #define INDRI_TERMSCOREFUNCTION_HPP
00021 namespace indri
00022 {
00023   namespace query
00024   {
00025     
00032     class TermScoreFunction {
00033     public:
00034       virtual double scoreOccurrence( double occurrences, int contextLength ) = 0;
00035       virtual double scoreOccurrence( double occurrences, int contextLength, double documentOccurrences, int documentLength ) = 0;
00036     };
00037   }
00038 }
00039 
00040 #endif // INDRI_TERMSCOREFUNCTION_HPP
00041 

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