Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

PLSAParam.hpp

Go to the documentation of this file.
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.lemurproject.org/license.html
00008  *
00009  *==========================================================================
00010 */
00011 
00012 #ifndef _PLSAPARAMETER_HPP
00013 #define _PLSAPARAMETER_HPP
00014 
00016 #include "Param.hpp"
00018 namespace PLSAParam {
00020 
00021 
00022   static String databaseIndex;
00024   static int numCats;
00026   static double beta, betaMin;
00028   static double eta;
00030   static double annealcue;
00032   static int numIters;
00034   static int numRestarts;
00036   static int testPercentage;
00038   static bool doTrain;
00040 
00041   static void get() {
00042     databaseIndex = ParamGetString("index","");
00043     numCats = ParamGetInt("numCats", 20);
00044     beta = ParamGetDouble("beta", 1);
00045     betaMin = ParamGetDouble("betaMin", 0.6);
00046     eta = ParamGetDouble("eta", 0.92);
00047     annealcue = ParamGetDouble("annealcue", 0);
00048     numIters = ParamGetInt("numIters", 100);
00049     numRestarts = ParamGetInt("numRestarts", 1);
00050     testPercentage = ParamGetInt("testPercentage", 10);
00051     String s = ParamGetString("doTrain", "true");
00052     doTrain = (s == "true");
00053   }
00054 };
00055 #endif

Generated on Wed Nov 3 12:59:01 2004 for Lemur Toolkit by doxygen1.2.18