diff options
author | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-07-03 17:30:33 +0300 |
---|---|---|
committer | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-07-03 17:30:33 +0300 |
commit | 98c03dc04767bebd4db889ffdacede80bed6c108 (patch) | |
tree | c1f31cc2e77dc85b245f9981254543dd3a25f564 /moses/TranslationTask.h | |
parent | f78bb4a6e93297d56408e085b9311e1c23aa548c (diff) | |
parent | 9dae3eb78520b7d574c8415a4fbebd84e37383bd (diff) |
Merge branch 'mmt-dev' into ranked-sampling.
Conflicts:
moses/TranslationModel/UG/mm/ug_bitext.h
moses/TranslationModel/UG/mm/ug_bitext_jstats.cc
moses/TranslationModel/UG/mm/ug_bitext_jstats.h
moses/TranslationModel/UG/mm/ug_bitext_pstats.cc
moses/TranslationModel/UG/mm/ug_sampling_bias.cc
moses/TranslationModel/UG/mm/ug_sampling_bias.h
Diffstat (limited to 'moses/TranslationTask.h')
-rw-r--r-- | moses/TranslationTask.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/moses/TranslationTask.h b/moses/TranslationTask.h index 500967538..4cb817451 100644 --- a/moses/TranslationTask.h +++ b/moses/TranslationTask.h @@ -67,6 +67,7 @@ protected: // task stays alive till it's done with it. std::string m_context_string; + std::map<std::string, float> m_context_weights; public: boost::shared_ptr<TranslationTask> @@ -126,6 +127,11 @@ public: std::string const& GetContextString() const; void SetContextString(std::string const& context); + std::map<std::string, float> const& GetContextWeights() const; + void SetContextWeights(std::string const& context_weights); + void ReSetContextWeights(std::map<std::string, float> const& new_weights); + + protected: boost::shared_ptr<Moses::InputType> m_source; boost::shared_ptr<Moses::IOWrapper> m_ioWrapper; |