mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 14:32:38 +03:00
Merge branch 'perf_moses2' of github.com:hieuhoang/mosesdecoder into perf_moses2
This commit is contained in:
commit
3eb0145850
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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());
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user