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
diff options
context:
space:
mode:
authorMosesAdmin <moses-support-owner@mit.edu>2015-10-31 20:14:47 +0300
committerMosesAdmin <moses-support-owner@mit.edu>2015-10-31 20:14:47 +0300
commit4168429aacc1d66e43ec8c730f8aa9e073a27cbe (patch)
tree691d4f6d3319b92bac03c69456f5229d21d29608 /moses/ContextScope.h
parentd6df7f4a160428dad88465db1fc6df38bfbc4a12 (diff)
daily automatic beautifier
Diffstat (limited to 'moses/ContextScope.h')
-rw-r--r--moses/ContextScope.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/moses/ContextScope.h b/moses/ContextScope.h
index 7d2d6dc3b..4e1583a78 100644
--- a/moses/ContextScope.h
+++ b/moses/ContextScope.h
@@ -125,25 +125,25 @@ public:
return m_context_weights;
}
#endif
-
+
bool
SetContextWeights(std::string const& spec) {
if (m_context_weights) return false;
boost::unique_lock<boost::shared_mutex> lock(m_lock);
SPTR<std::map<std::string,float> > M(new std::map<std::string, float>);
-
+
// TO DO; This needs to be done with StringPiece.find, not Tokenize
// PRIORITY: low
std::vector<std::string> tokens = Tokenize(spec,":");
- for (std::vector<std::string>::iterator it = tokens.begin();
- it != tokens.end(); it++) {
+ for (std::vector<std::string>::iterator it = tokens.begin();
+ it != tokens.end(); it++) {
std::vector<std::string> key_and_value = Tokenize(*it, ",");
(*M)[key_and_value[0]] = atof(key_and_value[1].c_str());
}
m_context_weights = M;
return true;
}
-
+
bool
SetContextWeights(SPTR<std::map<std::string,float> const> const& w) {
if (m_context_weights) return false;