Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/moses
diff options
context:
space:
mode:
authorphkoehn <phkoehn@1f5c12ca-751b-0410-a591-d2e778427230>2006-08-31 19:44:06 +0400
committerphkoehn <phkoehn@1f5c12ca-751b-0410-a591-d2e778427230>2006-08-31 19:44:06 +0400
commitd79e6007c1a863756091a749dbbfa0b50058a4bb (patch)
tree238fb7997a7b4ad2caef7c31d37c84381afbe561 /moses
parent6d54aca44aba5dfe3e2ef7d58de5ab78ae4b81ee (diff)
bug fix with parameter handling, -beam-threshold now also -b
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@804 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses')
-rwxr-xr-xmoses/src/Parameter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/src/Parameter.cpp b/moses/src/Parameter.cpp
index 0b54ea9ac..b71033621 100755
--- a/moses/src/Parameter.cpp
+++ b/moses/src/Parameter.cpp
@@ -32,7 +32,7 @@ using namespace std;
/** define allowed parameters */
Parameter::Parameter()
{
- AddParam("beam-threshold", "threshold for threshold pruning");
+ AddParam("beam-threshold", "b", "threshold for threshold pruning");
AddParam("cache-path", "?"); //TODO description, please
AddParam("config", "f", "location of the configuration file");
AddParam("distortion", "?"); //TODO description, please
@@ -138,7 +138,7 @@ bool Parameter::LoadParam(int argc, char* argv[])
}
// overwrite parameters with values from switches
- for(PARAM_MAP::const_iterator iterParam = m_setting.begin(); iterParam != m_setting.end(); iterParam++)
+ for(PARAM_STRING::const_iterator iterParam = m_description.begin(); iterParam != m_description.end(); iterParam++)
{
const string paramName = iterParam->first;
OverwriteParam("-" + paramName, paramName, argc, argv);