diff options
author | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-01-20 19:54:17 +0400 |
---|---|---|
committer | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-01-20 19:54:17 +0400 |
commit | 5d2b4d8efccbd3f032aa68addd9655ef62218c5b (patch) | |
tree | 1312f9401204cbbc2cac7082f57ce8168d70e2cb /moses/Parameter.h | |
parent | 043444b2931fbfcd66973acf7483d25b3c2c66fe (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.h | 3 |
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 { |