mosesdecoder/contrib/other-builds/moses2/FF/PhrasePenalty.h

33 lines
520 B
C
Raw Normal View History

2015-12-01 02:03:33 +03:00
/*
* SkeletonStatefulFF.h
*
* Created on: 27 Oct 2015
* Author: hieu
*/
#pragma once
#include "StatelessFeatureFunction.h"
2015-12-10 23:49:30 +03:00
namespace Moses2
{
2015-12-01 02:03:33 +03:00
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,
2015-12-01 02:03:33 +03:00
Scores &scores,
Scores *estimatedScores) const;
};
2015-12-10 23:49:30 +03:00
}