mosesdecoder/moses/FF/UnknownWordPenaltyProducer.cpp

24 lines
430 B
C++

#include "UnknownWordPenaltyProducer.h"
#include <vector>
#include <string>
using namespace std;
namespace Moses
{
UnknownWordPenaltyProducer::UnknownWordPenaltyProducer(const std::string &line)
: StatelessFeatureFunction("UnknownWordPenalty",1, line)
{
m_tuneable = false;
ReadParameters();
}
std::vector<float> UnknownWordPenaltyProducer::DefaultWeights() const
{
std::vector<float> ret(1, 1.0f);
return ret;
}
}