diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-11 13:12:54 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-11 16:52:48 +0300 |
commit | 65f4f1f92af3d645b1dfc2f161bbcf47bdce1402 (patch) | |
tree | d24edefd5cbe1e954021958b5214471c29c96a04 /moses/TranslationOptionCollectionText.cpp | |
parent | 40ed3df9cb513681569a2fcde32a5215c38253f3 (diff) |
Code cleanup and refactoring.
Diffstat (limited to 'moses/TranslationOptionCollectionText.cpp')
-rw-r--r-- | moses/TranslationOptionCollectionText.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/moses/TranslationOptionCollectionText.cpp b/moses/TranslationOptionCollectionText.cpp index 9ad5d19ad..27b3353a6 100644 --- a/moses/TranslationOptionCollectionText.cpp +++ b/moses/TranslationOptionCollectionText.cpp @@ -26,15 +26,23 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include "FactorCollection.h" #include "Range.h" #include <list> +#include "TranslationTask.h" using namespace std; namespace Moses { /** constructor; just initialize the base class */ -TranslationOptionCollectionText::TranslationOptionCollectionText(ttasksptr const& ttask, Sentence const &input, size_t maxNoTransOptPerCoverage, float translationOptionThreshold) - : TranslationOptionCollection(ttask,input, maxNoTransOptPerCoverage, translationOptionThreshold) +TranslationOptionCollectionText:: +TranslationOptionCollectionText(ttasksptr const& ttask, Sentence const &input) + //, size_t maxNoTransOptPerCoverage, float translationOptionThreshold) + : TranslationOptionCollection(ttask,input) + // , maxNoTransOptPerCoverage, translationOptionThreshold) { + size_t maxNoTransOptPerCoverage + = ttask->options()->search.max_trans_opt_per_cov; + float translationOptionThreshold + = ttask->options()->search.trans_opt_threshold; size_t size = input.GetSize(); m_inputPathMatrix.resize(size); for (size_t phaseSize = 1; phaseSize <= size; ++phaseSize) { |