mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
add implementations for options update(). Link error on Redhat 7
This commit is contained in:
parent
21dc3b6112
commit
199b826649
@ -101,6 +101,11 @@ namespace Moses
|
||||
if (!syntax.update(param)) return false;
|
||||
return sanity_check();
|
||||
}
|
||||
#else
|
||||
bool
|
||||
AllOptions::
|
||||
update(std::map<std::string,xmlrpc_c::value>const& param)
|
||||
{}
|
||||
#endif
|
||||
|
||||
bool
|
||||
|
@ -72,6 +72,11 @@ namespace Moses
|
||||
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
bool
|
||||
CubePruningOptions::
|
||||
update(std::map<std::string,xmlrpc_c::value>const& params)
|
||||
{}
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -95,6 +95,11 @@ namespace Moses {
|
||||
xml_policy = Scan<XmlInputType>(xmlrpc_c::value_string(si->second));
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
bool
|
||||
InputOptions::
|
||||
update(std::map<std::string,xmlrpc_c::value>const& param)
|
||||
{}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
@ -62,6 +62,11 @@ update(std::map<std::string,xmlrpc_c::value>const& param)
|
||||
enabled = (nbest_size > 0);
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
bool
|
||||
NBestOptions::
|
||||
update(std::map<std::string,xmlrpc_c::value>const& param)
|
||||
{}
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -43,6 +43,11 @@ namespace Moses {
|
||||
// xml_policy = Scan<XmlInputType>(xmlrpc_c::value_string(si->second));
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
bool
|
||||
OOVHandlingOptions::
|
||||
update(std::map<std::string,xmlrpc_c::value>const& param)
|
||||
{}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
@ -24,5 +24,10 @@ namespace Moses {
|
||||
if (m == param.end()) return dfltval;
|
||||
return Scan<bool>(xmlrpc_c::value_string(m->second));
|
||||
}
|
||||
#else
|
||||
bool
|
||||
OptionsBaseClass::
|
||||
check(std::map<std::string, xmlrpc_c::value> const& param,
|
||||
{}
|
||||
#endif
|
||||
}
|
||||
|
@ -153,5 +153,10 @@ namespace Moses {
|
||||
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
bool
|
||||
ReportingOptions::
|
||||
update(std::map<std::string, xmlrpc_c::value>const& param)
|
||||
{}
|
||||
#endif
|
||||
}
|
||||
|
@ -102,6 +102,11 @@ namespace Moses
|
||||
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
bool
|
||||
SearchOptions::
|
||||
update(std::map<std::string,xmlrpc_c::value>const& params)
|
||||
{}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
@ -77,6 +77,11 @@ namespace Moses {
|
||||
// xml_policy = Scan<XmlInputType>(xmlrpc_c::value_string(si->second));
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
bool
|
||||
SyntaxOptions::
|
||||
update(std::map<std::string,xmlrpc_c::value>const& param)
|
||||
{}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user