diff --git a/mira/Decoder.cpp b/mira/Decoder.cpp index 6efddbc1b..94047b3e6 100644 --- a/mira/Decoder.cpp +++ b/mira/Decoder.cpp @@ -70,14 +70,14 @@ namespace Mira { : m_manager(NULL) { // force initialisation of the phrase dictionary (TODO: why?) const StaticData &staticData = StaticData::Instance(); - m_sentence = new Sentence(Input); + /*m_sentence = new Sentence(Input); stringstream in("Initialising decoder..\n"); const std::vector &inputFactorOrder = staticData.GetInputFactorOrder(); - m_sentence->Read(in,inputFactorOrder); + m_sentence->Read(in,inputFactorOrder);*/ const TranslationSystem& system = staticData.GetTranslationSystem(TranslationSystem::DEFAULT); - m_manager = new Manager(*m_sentence, staticData.GetSearchAlgorithm(), &system); - m_manager->ProcessSentence(); + /*m_manager = new Manager(*m_sentence, staticData.GetSearchAlgorithm(), &system); + m_manager->ProcessSentence();*/ // Add the bleu feature m_bleuScoreFeature = new BleuScoreFeature(scaleByInputLength, historySmoothing); diff --git a/moses/src/BleuScoreFeature.cpp b/moses/src/BleuScoreFeature.cpp index a119814fa..1a5ea8c0c 100644 --- a/moses/src/BleuScoreFeature.cpp +++ b/moses/src/BleuScoreFeature.cpp @@ -83,6 +83,7 @@ void BleuScoreFeature::PrintHistory(std::ostream& out) const { void BleuScoreFeature::LoadReferences(const std::vector< std::vector< std::string > >& refs) { + cerr << "BleuScoreFeature: loading reference sentences.. " << endl; m_refs.clear(); FactorCollection& fc = FactorCollection::Instance(); for (size_t file_id = 0; file_id < refs.size(); file_id++) { diff --git a/moses/src/StaticData.cpp b/moses/src/StaticData.cpp index fe6ccab3f..c56f9bbca 100644 --- a/moses/src/StaticData.cpp +++ b/moses/src/StaticData.cpp @@ -1298,7 +1298,7 @@ bool StaticData::LoadDecodeGraphs() bool StaticData::LoadReferences() { - vector bleuWeightStr = m_parameter->GetParam("weight-b"); + vector bleuWeightStr = m_parameter->GetParam("weight-bl"); vector referenceFiles = m_parameter->GetParam("references"); if ((!referenceFiles.size() && bleuWeightStr.size()) || (referenceFiles.size() && !bleuWeightStr.size())) { UserMessage::Add("You cannot use the bleu feature without references, and vice-versa"); @@ -1338,7 +1338,6 @@ bool StaticData::LoadReferences() } //Set the references in the bleu feature m_bleuScoreFeature->LoadReferences(references); - m_bleuScoreFeature->SetCurrentReference(0); //TODO: Temporary, for testing return true; }