daily automatic beautifier

This commit is contained in:
MosesAdmin 2015-11-25 00:00:39 +00:00
parent ca038c5e4c
commit 57a291421a
3 changed files with 4 additions and 6 deletions

View File

@ -55,7 +55,7 @@ FeatureFunction(const std::string& line, bool registerNow)
m_numTuneableComponents = m_numScoreComponents; m_numTuneableComponents = m_numScoreComponents;
ParseLine(line); ParseLine(line);
// if (registerNow) Register(); // now done in FeatureFactory::DefaultSetup() // 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) 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; m_numTuneableComponents = m_numScoreComponents;
ParseLine(line); ParseLine(line);
// if (registerNow) Register(); // now done in FeatureFactory::DefaultSetup() // if (registerNow) Register(); // now done in FeatureFactory::DefaultSetup()
// TO DO: eliminate the registerNow parameter // TO DO: eliminate the registerNow parameter
} }
void void

View File

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

View File

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