mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
36 lines
568 B
C++
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_ */
|
|
|