delete unused fn

This commit is contained in:
Hieu Hoang 2016-07-29 21:51:35 +01:00
parent 45aa4a223f
commit 39cbe71854
2 changed files with 0 additions and 23 deletions

View File

@ -117,25 +117,6 @@ void Scores::PlusEquals(const System &system,
}
}
void Scores::PlusEquals(const System &system,
const FeatureFunction &featureFunction, const Vector<SCORE> &scores)
{
assert(scores.size() == featureFunction.GetNumScores());
const Weights &weights = system.weights;
size_t ffStartInd = featureFunction.GetStartInd();
for (size_t i = 0; i < scores.size(); ++i) {
SCORE incrScore = scores[i];
if (system.options.nbest.nbest_size) {
m_scores[ffStartInd + i] += incrScore;
}
//cerr << "ffStartInd=" << ffStartInd << " " << i << endl;
SCORE weight = weights[ffStartInd + i];
m_total += incrScore * weight;
}
}
void Scores::PlusEquals(const System &system,
const FeatureFunction &featureFunction, SCORE scores[])
{

View File

@ -10,7 +10,6 @@
#include <string>
#include "TypeDef.h"
#include "MemPool.h"
#include "Vector.h"
namespace Moses2
{
@ -48,9 +47,6 @@ public:
void PlusEquals(const System &system, const FeatureFunction &featureFunction,
const std::vector<SCORE> &scores);
void PlusEquals(const System &system, const FeatureFunction &featureFunction,
const Vector<SCORE> &scores);
void PlusEquals(const System &system, const FeatureFunction &featureFunction,
SCORE scores[]);