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

lemur::api::RetMethodManager Class Reference

Factory class for creating RetrievalMethod objects. More...

#include <RetMethodManager.hpp>

List of all members.

Public Types

enum  RetModel {
  UNKNOWN = -1, TFIDF = 0, OKAPI = 1, KL = 2,
  INQUERY = 3, CORI_CS = 4, COS = 5, INQ_STRUCT = 6,
  INDRI = 7
}

Static Public Member Functions

RetrievalMethodcreateModel (const Index *ind, ScoreAccumulator *accum, RetModel type)
 use specified model or check in parameters

RetrievalMethodcreateModel (const Index *ind, ScoreAccumulator *accum, string type="")
 use specified model or check in parameters

IndexedRealVectorrunQuery (const string &query, const Index *index, const string &modeltype, const string &stopfile="", const string &stemtype="", const string &datadir="", const string &func="")
IndexedRealVectorrunTextQuery (const string &query, TextQueryRetMethod *model, const string &stopfile="", const string &stemtype="", const string &datadir="", const string &func="")
IndexedRealVectorrunStructQuery (const string &query, StructQueryRetMethod *model, const string &stopfile="", const string &stemtype="", const string &datadir="", const string &func="")


Detailed Description

Factory class for creating RetrievalMethod objects.


Member Enumeration Documentation

enum lemur::api::RetMethodManager::RetModel
 

Enumeration values:
UNKNOWN 
TFIDF 
OKAPI 
KL 
INQUERY 
CORI_CS 
COS 
INQ_STRUCT 
INDRI 


Member Function Documentation

lemur::api::RetrievalMethod * lemur::api::RetMethodManager::createModel const Index ind,
ScoreAccumulator accum,
string  type = ""
[static]
 

use specified model or check in parameters

lemur::api::RetrievalMethod * lemur::api::RetMethodManager::createModel const Index ind,
ScoreAccumulator accum,
RetModel  type
[static]
 

use specified model or check in parameters

lemur::api::IndexedRealVector * lemur::api::RetMethodManager::runQuery const string &  query,
const Index index,
const string &  modeltype,
const string &  stopfile = "",
const string &  stemtype = "",
const string &  datadir = "",
const string &  func = ""
[static]
 

automatically generate retrieval and query models from the given query stopword file and stemmer are optional specify model using string type name query terms delimited by space delete IndexedRealVector

lemur::api::IndexedRealVector * lemur::api::RetMethodManager::runStructQuery const string &  query,
StructQueryRetMethod model,
const string &  stopfile = "",
const string &  stemtype = "",
const string &  datadir = "",
const string &  func = ""
[static]
 

automatically generate query models from the given query and run through given retrieval model. stopword file and stemmer are optional query terms delimited by space delete IndexedRealVector returned

lemur::api::IndexedRealVector * lemur::api::RetMethodManager::runTextQuery const string &  query,
TextQueryRetMethod model,
const string &  stopfile = "",
const string &  stemtype = "",
const string &  datadir = "",
const string &  func = ""
[static]
 

automatically generate query models from the given query and run through given retrieval model. stopword file and stemmer are optional query terms delimited by space delete IndexedRealVector returned


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:05 2010 for Lemur by doxygen 1.3.4