mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 14:32:38 +03:00
24 lines
430 B
C++
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;
|
|
}
|
|
|
|
}
|
|
|