Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-12-11 13:12:54 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-12-11 16:52:48 +0300
commit65f4f1f92af3d645b1dfc2f161bbcf47bdce1402 (patch)
treed24edefd5cbe1e954021958b5214471c29c96a04 /moses/TranslationOptionCollectionLattice.cpp
parent40ed3df9cb513681569a2fcde32a5215c38253f3 (diff)
Code cleanup and refactoring.
Diffstat (limited to 'moses/TranslationOptionCollectionLattice.cpp')
-rw-r--r--moses/TranslationOptionCollectionLattice.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/moses/TranslationOptionCollectionLattice.cpp b/moses/TranslationOptionCollectionLattice.cpp
index 9346d839d..b0973aefe 100644
--- a/moses/TranslationOptionCollectionLattice.cpp
+++ b/moses/TranslationOptionCollectionLattice.cpp
@@ -21,14 +21,16 @@ namespace Moses
/** constructor; just initialize the base class */
TranslationOptionCollectionLattice
::TranslationOptionCollectionLattice
-( ttasksptr const& ttask, const WordLattice &input,
- size_t maxNoTransOptPerCoverage, float translationOptionThreshold)
- : TranslationOptionCollection(ttask, input, maxNoTransOptPerCoverage,
- translationOptionThreshold)
+( ttasksptr const& ttask, const WordLattice &input)
+ // , size_t maxNoTransOptPerCoverage, float translationOptionThreshold)
+ : TranslationOptionCollection(ttask, input)//
+ // , maxNoTransOptPerCoverage, translationOptionThreshold)
{
UTIL_THROW_IF2(StaticData::Instance().GetUseLegacyPT(),
"Not for models using the legqacy binary phrase table");
+ size_t maxNoTransOptPerCoverage = ttask->options()->search.max_trans_opt_per_cov;
+ float translationOptionThreshold = ttask->options()->search.trans_opt_threshold;
const InputFeature *inputFeature = InputFeature::InstancePtr();
UTIL_THROW_IF2(inputFeature == NULL, "Input feature must be specified");