mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-11-10 10:59:21 +03:00
29 lines
410 B
C++
29 lines
410 B
C++
#pragma once
|
|
|
|
// $Id$
|
|
|
|
#include "StatelessFeatureFunction.h"
|
|
#include "util/check.hh"
|
|
|
|
namespace Moses
|
|
{
|
|
|
|
class WordsRange;
|
|
|
|
|
|
/** unknown word penalty */
|
|
class UnknownWordPenaltyProducer : public StatelessFeatureFunction
|
|
{
|
|
public:
|
|
UnknownWordPenaltyProducer(const std::string &line);
|
|
|
|
bool IsUseable(const FactorMask &mask) const {
|
|
return true;
|
|
}
|
|
std::vector<float> DefaultWeights() const;
|
|
|
|
};
|
|
|
|
}
|
|
|