diff options
Diffstat (limited to 'mert/mert.cpp')
-rwxr-xr-x | mert/mert.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mert/mert.cpp b/mert/mert.cpp index f79607b40..2721d9788 100755 --- a/mert/mert.cpp +++ b/mert/mert.cpp @@ -39,19 +39,19 @@ class OptimizationTask : public Moses::Task { ~OptimizationTask() {} - void resetOptimizer() { - if (m_optimizer) { - delete m_optimizer; - m_optimizer = NULL; - } + virtual void Run() { + m_score = m_optimizer->Run(m_point); } - bool DeleteAfterExecution() { + virtual bool DeleteAfterExecution() { return false; } - void Run() { - m_score = m_optimizer->Run(m_point); + void resetOptimizer() { + if (m_optimizer) { + delete m_optimizer; + m_optimizer = NULL; + } } statscore_t getScore() const { |