This commit is contained in:
Ulrich Germann 2015-11-25 10:49:41 +00:00
commit 052c8b915b
4 changed files with 5 additions and 7 deletions

View File

@ -55,7 +55,7 @@ FeatureFunction(const std::string& line, bool registerNow)
m_numTuneableComponents = m_numScoreComponents;
ParseLine(line);
// if (registerNow) Register(); // now done in FeatureFactory::DefaultSetup()
// TO DO: eliminate the registerNow parameter
// TO DO: eliminate the registerNow parameter
}
FeatureFunction::FeatureFunction(size_t numScoreComponents, const std::string& line, bool registerNow)
@ -68,7 +68,7 @@ FeatureFunction::FeatureFunction(size_t numScoreComponents, const std::string& l
m_numTuneableComponents = m_numScoreComponents;
ParseLine(line);
// if (registerNow) Register(); // now done in FeatureFactory::DefaultSetup()
// TO DO: eliminate the registerNow parameter
// TO DO: eliminate the registerNow parameter
}
void

View File

@ -157,8 +157,7 @@ template <class Model> LanguageModelKen<Model>::LanguageModelKen(const std::stri
lm::ngram::Config config;
if(this->m_verbosity >= 1) {
config.messages = &std::cerr;
}
else {
} else {
config.messages = NULL;
}
FactorCollection &collection = FactorCollection::Instance();

View File

@ -89,8 +89,7 @@ public:
struct MockProducers {
MockProducers()
{
MockProducers() {
FeatureFunction::Register(&single);
FeatureFunction::Register(&multi);
FeatureFunction::Register(&sparse);

View File

@ -397,7 +397,7 @@ pack_hypothesis(const Moses::Manager& manager, vector<Hypothesis const* > const&
if (m_withWordAlignInfo) {
// word alignment, if requested
vector<xmlrpc_c::value> w_aln;
BOOST_FOREACH(Hypothesis const* e, edges)
BOOST_REVERSE_FOREACH(Hypothesis const* e, edges)
e->OutputLocalWordAlignment(w_aln);
dest["word-align"] = xmlrpc_c::value_array(w_aln);
}