diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-01-21 19:07:50 +0300 |
---|---|---|
committer | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2015-01-22 14:25:02 +0300 |
commit | ad6f3a802622ba6aff9ce31b82dc81315dd32755 (patch) | |
tree | 24c5345240acc222bd286d0379593f4e2b23bf4c /moses/FF/FeatureFunction.h | |
parent | ec547fa56ac8ca1221956ed390062f3a0fd3b2eb (diff) |
option to sort translation options after EvaluateAfterSourceContext
Diffstat (limited to 'moses/FF/FeatureFunction.h')
-rw-r--r-- | moses/FF/FeatureFunction.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/moses/FF/FeatureFunction.h b/moses/FF/FeatureFunction.h index 72fb3ab21..767270140 100644 --- a/moses/FF/FeatureFunction.h +++ b/moses/FF/FeatureFunction.h @@ -36,6 +36,7 @@ protected: std::string m_description, m_argLine; std::vector<std::vector<std::string> > m_args; bool m_tuneable; + bool m_requireSortingAfterSourceContext; size_t m_verbosity; size_t m_numScoreComponents; //In case there's multiple producers with the same description @@ -88,6 +89,11 @@ public: virtual bool IsTuneable() const { return m_tuneable; } + + virtual bool RequireSortingAfterSourceContext() const { + return m_requireSortingAfterSourceContext; + } + virtual std::vector<float> DefaultWeights() const; //! Called before search and collecting of translation options |