mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-29 06:52:34 +03:00
28 lines
365 B
C++
28 lines
365 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;
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|