mosesdecoder/contrib/other-builds/moses2/FF/WordPenalty.h
2016-01-18 15:37:04 +00:00

36 lines
568 B
C++

/*
* WordPenalty.h
*
* Created on: 28 Oct 2015
* Author: hieu
*/
#ifndef WORDPENALTY_H_
#define WORDPENALTY_H_
#include "StatelessFeatureFunction.h"
namespace Moses2
{
class WordPenalty : public StatelessFeatureFunction
{
public:
WordPenalty(size_t startInd, const std::string &line);
virtual ~WordPenalty();
virtual void
EvaluateInIsolation(MemPool &pool,
const System &system,
const Phrase &source,
const TargetPhrase &targetPhrase,
Scores &scores,
SCORE *estimatedScore) const;
};
}
#endif /* WORDPENALTY_H_ */