mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-01 16:33:16 +03:00
delete unused fn
This commit is contained in:
parent
45aa4a223f
commit
39cbe71854
@ -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[])
|
||||
{
|
||||
|
@ -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[]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user