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:
authorRico Sennrich <rico.sennrich@gmx.ch>2014-01-20 19:54:17 +0400
committerRico Sennrich <rico.sennrich@gmx.ch>2014-01-20 19:54:17 +0400
commit5d2b4d8efccbd3f032aa68addd9655ef62218c5b (patch)
tree1312f9401204cbbc2cac7082f57ce8168d70e2cb /moses/Parameter.h
parent043444b2931fbfcd66973acf7483d25b3c2c66fe (diff)
sparse feature weights can now be set in moses.ini; overrides weights in weight-file.
Diffstat (limited to 'moses/Parameter.h')
-rw-r--r--moses/Parameter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/moses/Parameter.h b/moses/Parameter.h
index be6b9c653..111275c4f 100644
--- a/moses/Parameter.h
+++ b/moses/Parameter.h
@@ -115,6 +115,9 @@ public:
}
std::vector<float> GetWeights(const std::string &name);
+ std::map<std::string, std::vector<float> > GetAllWeights() const {
+ return m_weights;
+ }
std::set<std::string> GetWeightNames() const;
const PARAM_MAP &GetParams() const {