2013-05-25 02:57:06 +04:00
|
|
|
#pragma once
|
|
|
|
|
2013-05-25 03:25:20 +04:00
|
|
|
// $Id$
|
|
|
|
|
|
|
|
#include "StatelessFeatureFunction.h"
|
2013-06-11 04:46:04 +04:00
|
|
|
#include "util/check.hh"
|
2013-05-25 03:25:20 +04:00
|
|
|
|
2013-05-25 02:57:06 +04:00
|
|
|
namespace Moses
|
|
|
|
{
|
|
|
|
|
2013-05-25 03:25:20 +04:00
|
|
|
class WordsRange;
|
|
|
|
|
|
|
|
|
|
|
|
/** unknown word penalty */
|
|
|
|
class UnknownWordPenaltyProducer : public StatelessFeatureFunction
|
|
|
|
{
|
|
|
|
public:
|
2013-06-20 15:50:41 +04:00
|
|
|
UnknownWordPenaltyProducer(const std::string &line);
|
2013-05-25 03:25:20 +04:00
|
|
|
|
2013-05-30 15:51:40 +04:00
|
|
|
bool IsUseable(const FactorMask &mask) const {
|
|
|
|
return true;
|
|
|
|
}
|
2013-05-30 15:41:08 +04:00
|
|
|
|
2013-05-25 03:25:20 +04:00
|
|
|
};
|
2013-05-25 02:57:06 +04:00
|
|
|
|
|
|
|
}
|
|
|
|
|