mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-04 09:56:33 +03:00
daily automatic beautifier
This commit is contained in:
parent
d59bb883dc
commit
37f7bb687e
@ -111,10 +111,8 @@ public:
|
|||||||
|
|
||||||
#ifdef HAVE_XMLRPC_C
|
#ifdef HAVE_XMLRPC_C
|
||||||
SPTR<std::map<std::string,float> >
|
SPTR<std::map<std::string,float> >
|
||||||
GetContextWeights(xmlrpc_c::value const* spec = NULL)
|
GetContextWeights(xmlrpc_c::value const* spec = NULL) {
|
||||||
{
|
if (spec && m_context_weights == NULL) {
|
||||||
if (spec && m_context_weights == NULL)
|
|
||||||
{
|
|
||||||
boost::unique_lock<boost::shared_mutex> lock(m_lock);
|
boost::unique_lock<boost::shared_mutex> lock(m_lock);
|
||||||
m_context_weights.reset(new std::map<std::string, float>);
|
m_context_weights.reset(new std::map<std::string, float>);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user