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

33 lines
518 B
C++

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