Merge branch 'perf_moses2' of github.com:hieuhoang/mosesdecoder into perf_moses2

This commit is contained in:
Hieu Hoang 2016-12-21 18:06:55 +00:00
commit 3eb0145850
4 changed files with 2 additions and 14 deletions

View File

@ -60,7 +60,7 @@ void Search::Decode()
if (stackInd < m_stacks.GetSize() - 1) {
m_stacks.Delete(stackInd);
}
//cerr << m_stacks << endl;
//cerr << m_stacks.Debug(mgr.system) << endl;
}
}

View File

@ -87,8 +87,8 @@ void PhraseTable::Lookup(const Manager &mgr, InputPathsBase &inputPaths) const
if (SatisfyBackoff(mgr, *path)) {
TargetPhrases *tpsPtr = Lookup(mgr, mgr.GetPool(), *path);
cerr << "tpsPtr=" << tpsPtr << " ";
/*
cerr << "tpsPtr=" << tpsPtr << " ";
if (tps.get()) {
cerr << tps.get()->GetSize();
}

View File

@ -36,16 +36,6 @@ void Weights::Init(const FeatureFunctions &ffs)
m_weights.resize(totalNumScores, 1);
}
std::ostream &Weights::Debug(std::ostream &out, const System &system) const
{
const FeatureFunctions &ffs = system.featureFunctions;
size_t numScores = ffs.GetNumScores();
for (size_t i = 0; i < numScores; ++i) {
out << m_weights[i] << " ";
}
}
std::vector<SCORE> Weights::GetWeights(const FeatureFunction &ff) const
{
std::vector<SCORE> ret(m_weights.begin() + ff.GetStartInd(), m_weights.begin() + ff.GetStartInd() + ff.GetNumScores());

View File

@ -27,8 +27,6 @@ public:
return m_weights[ind];
}
std::ostream &Debug(std::ostream &out, const System &system) const;
std::vector<SCORE> GetWeights(const FeatureFunction &ff) const;
void SetWeights(const FeatureFunctions &ffs, const std::string &ffName, const std::vector<float> &weights);