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:
Diffstat (limited to 'moses/src/PhraseDictionaryOnDisk.cpp')
-rw-r--r--[-rwxr-xr-x]moses/src/PhraseDictionaryOnDisk.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/moses/src/PhraseDictionaryOnDisk.cpp b/moses/src/PhraseDictionaryOnDisk.cpp
index 3c89408f5..5bada2aea 100755..100644
--- a/moses/src/PhraseDictionaryOnDisk.cpp
+++ b/moses/src/PhraseDictionaryOnDisk.cpp
@@ -39,7 +39,7 @@ PhraseDictionaryOnDisk::~PhraseDictionaryOnDisk()
bool PhraseDictionaryOnDisk::Load(const std::vector<FactorType> &input
, const std::vector<FactorType> &output
, const std::string &filePath
- , const std::vector<float> &weight
+ , const std::vector<float> &weight
, size_t tableLimit
, const LMList& languageModels
, const WordPenaltyProducer* wpProducer)
@@ -51,8 +51,6 @@ bool PhraseDictionaryOnDisk::Load(const std::vector<FactorType> &input
m_inputFactorsVec = input;
m_outputFactorsVec = output;
- m_weight = weight;
-
LoadTargetLookup();
if (!m_dbWrapper.BeginLoad(filePath))
@@ -94,13 +92,11 @@ ChartRuleLookupManager *PhraseDictionaryOnDisk::CreateRuleLookupManager(
const InputType &sentence,
const ChartCellCollection &cellCollection)
{
- std::vector<float> weightT = StaticData::Instance().GetTranslationSystem(TranslationSystem::DEFAULT).GetTranslationWeights();
+ std::vector<float> weightT = StaticData::Instance().GetTranslationSystem(TranslationSystem::DEFAULT).GetTranslationWeights(GetDictIndex());
return new ChartRuleLookupManagerOnDisk(sentence, cellCollection, *this,
m_dbWrapper, m_languageModels,
m_wpProducer, m_inputFactorsVec,
- //m_outputFactorsVec, m_weight,
- m_outputFactorsVec, weightT,
- m_filePath);
+ m_outputFactorsVec, m_filePath);
}
}